News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

OpenGL library

Started by igi, July 14, 2007, 01:43:37 PM

Previous topic - Next topic

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."