User forums > Using Code::Blocks
Code::Blocks try to open .obj libs, but not .lib?
sodev:
The lib extension doesn't get added to the libraries so the linker thinks they are object files. Two reasons for this come into my mind.
Open the Build Options of your project, select the corresponding configuration and check the Linker Settings, have you specified the Link Libraries without prefix and extensions, e.g. the entries look like sfml-main?
Menu Settings -> Compiler -> (Select your compiler in the combobox) -> Tab Other settings -> Button Advanced Options -> Tab Others
- Textfield Library extension should contain: lib
- Checkbox Linker needs lib extension should be: checked
In your log i see a custom compiler name, i assume you created an own compiler entry, what compiler entry did you copy to create it? Because your include specifications look like gcc. Better copy the Visual Studio 2010 entry, it already contains all the proper settings, you just have to fix the paths (and add the /FS option to get parallel builds to work).
alt + 255:
Okay, it was just this little checkbox, and now it works !
Thanks everyone
Navigation
[0] Message Index
[*] Previous page
Go to full version