User forums > General (but related to Code::Blocks)
irrelevant linker options.
(1/1)
this_is_phil:
I have been following tutorials for using SDL and have passed linker options to the global compiler and debugger settings. I was wondering whether the specified libraries would be linked if they weren't used in the project, such as if I were to write a program which didn't use the SDL libraries, would they still be linked?
MortenMacFly:
--- Quote from: this_is_phil on October 06, 2008, 10:44:02 pm ---which didn't use the SDL libraries, would they still be linked?
--- End quote ---
Depends on the linker. Most linker won't use the import library in that case. But: You might get an error with duplicate/incompatible symbols (e.g. different "main" styles). So it's always worth to keep your project setup clean.
Navigation
[0] Message Index
Go to full version