Bug #17667 2010-10-28 19:31

cinolt

Overlooked Detail Linking .lib Files

After opening a project, going to Build -> Build Options in the menu, then Linker settings, in the box that says "Link libraries", if one enters something such as "libopengl32.a" then CodeBlocks recognizes it must append this to the linker's command line "-lopengl32".

However, it fails to recognize the proper syntax for linking in .lib files. For instance, if I enter in "opengl32.lib", CodeBlocks thinks it should append "-lopengl32.lib" to the linker command line, but this is wrong on MinGW compilers. It should be "-lopengl32".

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to
 
ID_58103 2010-11-11 15:22

You can add "opengl32.lib" to the Other linker options.