PDA

View Full Version : Windows OpenGl problem(C++ Code::Blocks)



Need4Sleep
07-11-2012, 05:01 PM
I recently just found this forum, and i've been having a headache over this problem! i dont want to fill up this post, so ill link you guys to the problem which i posted on a different forum. Thank you SO MUCH if you can help!
http://www.cplusplus.com/forum/windows/75097/

V-man
07-13-2012, 09:38 AM
It looks like linker errors since the first line says
obj\Debug\main.o

You need to find out how to link with opengl32.a or whatever Code::Blocks calls it (opengl32.lib?)
You also should link with all other libraries that you use, such as glu32.a (or glu32.lib).

Kopelrativ
07-13-2012, 03:55 PM
Notice that you are using legacy OpenGL (http://www.opengl.org/wiki/FAQ#Fixed_function_and_modern_GPUs). Are you sure you want to do that?

I am using CodeBlocks for OpenGL and MinGW, and I use the following libraries. But I use glew as an extension loading library (http://www.opengl.org/wiki/Extension_Loading_Library).
lglew32
lopengl32
Ws2_32
ole32
comctl32
gdi32
comdlg32
uuid