I have an OpenGL2 application that runs on linux and win32 by including glee.h and glee.c in my program. I believe glee is necessary on win32, but I do not understand why glee.h and glee.c are necessary in linux.
When I omit glee.h and glee.c from my project in linux, it compiles okay, but generates hundreds of link errors due to undefined symbols. The symbols have an extra p prefix character (like “pglActiveTexture” for function “glActiveTexture”).
The gl.h glx.h glext.h glxext.h files apparently contain every GLX and OpenGL function (up to GLX 1.3 and OpenGL 2.1), which is why it compiles okay. Do I need to refer to another library in the linker properties (in addition to GL and X11)?
I believe I am missing something very obvious! Tell me so I can slap my forehead and move on. Thanks.
In case it matters, my linux is ubuntu 8.04.1 LTS, and my graphics card is nvidia 8600GT (until my GTX280 arrives).