Code::Blocks Forums
User forums => Help => Topic started by: WILL on March 13, 2008, 05:16:11 pm
-
Just get installed, but I don't know how to add library for Codeblock. Any help would be appreciated !T_T ! Thanks !
-
You don't install libraries for Code::Blocks, you install them for your compiler. The essential OpenGL libraries are usually served with the compiler, though.
As for adding libraries for C::B projects, try Project -> Build Options -> Linker Settings -> Link libraries.
-
What I recommend is using a simple framework such as GLFW, this allows you to create a window for OpenGL drawing without using win32 routines.
http://glfw.sourceforge.net/
After you compile it simply use the Codeblocks Library finder plugin and point it to the base directory for GLFW, then it will add the environment variables automatically so you don't have to hard-wire the absolute path.
When that is all said and done, simply go to New->Project->GLFW Project and it will load all the library and path settings.
As for OpenGL itself, the libraries are included with the compiler like Kos said. They are Opengl32.a/lib and the include file is <GL/gl.h>