Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: this_is_phil on October 06, 2008, 10:44:02 pm

Title: irrelevant linker options.
Post by: this_is_phil on October 06, 2008, 10:44:02 pm
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?
Title: Re: irrelevant linker options.
Post by: MortenMacFly on October 07, 2008, 04:49:02 pm
which didn't use the SDL libraries, would they still be linked?
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.