Author Topic: Where and how to enter linkers options in C::B ?  (Read 2770 times)

Offline eranon

  • Almost regular
  • **
  • Posts: 180
Where and how to enter linkers options in C::B ?
« on: May 28, 2012, 12:35:10 pm »
Hello. I've entered these linker options in "Project / Build options / Release / Linker settings / Others linker options" :

Code
-Wl,--allow-multiple-definition

And build log says :

Quote
Linking 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)
« Last Edit: May 28, 2012, 01:42:16 pm by eanon »
[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"]