Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: eranon on May 28, 2012, 12:35:10 pm

Title: Where and how to enter linkers options in C::B ?
Post by: eranon 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)