User forums > Using Code::Blocks
OpenGL library
(1/1)
igi:
dear..
i want make application use OpenGL library.for example, i use glBegin() funtion, but when i compile, there's error that can't undefined reference to glBegin() function.i tried with gcc -o gl gl.c -lMessaGL, but nothing change..
i hope anybody can resolve this.i use MS Windows XP with codeblock RC01
thx..
stdlll:
I think you should have created a OpenGL Appication project first, and add code to it. To created a OpenGL Appication project: File/New project/select OpenGL Appication /press Enter.
If there is there is no item named "OpenGL Appication", then you did not have installed the OpenGL library. You should add one.
thomas:
Don't know about MESA, having never used it, but from that library's name, it looks like it should work too... hmm?
I'm using -lopengl32 and it works just fine. Maybe worth a try.
Navigation
[0] Message Index
Go to full version