Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » GCC Linking Issue
GCC Linking Issue [message #34375] Sat, 19 November 2011 12:13 Go to previous message
dentist is currently offline  dentist
Messages: 2
Registered: November 2011
Junior Member
Hi all!

Soon i tried to build a boost::test example in MinGW32, which required a -lboost_unit_test_framework-mgw46-mt-1_47 link option.
I tried setting it in Build methods - Release link options, but had no luck. Having in mind a GCC "bugfeature" - symbols from object files are being resolved using only libs, passed after this file, i found these lines:

uppsrc/ide/Builders/GccBuilder.cpp - GccBuilder::Link().
//                      lnk << " -Wl,--gc-sections,-O,2 ";
                        if (!HasFlag("OSX11"))
                          lnk << " -Wl,-O,2 "; // CXL 05/11/14 --gc-sections causing trouble on ubuntu
                        lnk << linkoptions;



here linkoptions variable contains my link options.
I advice you to move "lnk << linkoptions;" before "PutConsole("Linking...");", with adding a space in preceding string " -Wl,--end-group ".

It worked for me.
 
Read Message
Read Message
Read Message
Previous Topic: compilation error on ubuntu 11.04 (glibconfig.h)
Next Topic: [Debugging] Watch global variables
Goto Forum:
  


Current Time: Sun Apr 28 17:00:50 CEST 2024

Total time taken to generate the page: 0.05146 seconds