News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Where and how to enter linkers options in C::B ?

Started by eranon, May 28, 2012, 12:35:10 PM

Previous topic - Next topic

eranon

Hello. I've entered these linker options in "Project / Build options / Release / Linker settings / Others linker options" :

-Wl,--allow-multiple-definition

And build log says :

QuoteLinking executable: bin\Release\wx29_cb-mini.exe
mingw32-g++.exe: error: unrecognized option '--allow-multiple-definition'
Process terminated with status 1 (0 minutes, 14 seconds)
0 errors, 0 warnings (0 minutes, 14 seconds)

I've also tried putting one option by line and w/o any "," : same result. So, why, knowing theses options appear in the C::B FAQ to avoid some warnings : http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_My_build_fails_to_link_due_to_multiple_definition_of_xyz_errors.3F ?

--
EDIT : OK, it was just a matter of syntax. So, solved (I've not warning free building, but options are now well entered in C::B fields)
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]