User forums > Using Code::Blocks
Where and how to enter linkers options in C::B ?
(1/1)
eranon:
Hello. I've entered these linker options in "Project / Build options / Release / Linker settings / Others linker options" :
--- Code: ----Wl,--allow-multiple-definition
--- End code ---
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)
--- End quote ---
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)
Navigation
[0] Message Index
Go to full version