12-11-2003, 03:55 PM
I have all the following files in my GL subdirectory for my includes
GLwDrawA.h fglut.h glui.h glxproto.h viewmodel.h
GLwDrawAP.h gl.h glut.h glxtokens.h xmesa.h
GLwMDrawA.h gl_mangle.h glutf90.h moo.cpp xmesa_x.h
GLwMDrawAP.h glaux.h glx.h moo.cpp~ xmesa_xf86.h
algebra3.h glext.h glx_mangle.h osmesa.h
arcball.h glsmap.h glxext.h quaternion.h
fgl.h glu.h glxint.h stdinc.h
fglu.h glu_mangle.h glxmd.h tube.h
but when I compile a simple application with nothing except glBegin( GL_POINTS ); and glEND() I always get
/tmp/ccNQpAvJ.o(.text+0x16): In function `main':
: undefined reference to `glBegin'
collect2: ld returned 1 exit status
I even tried copying and pasting all the code from GL/gl.h into the source file that I called glBegin and glEnd from, but I still always get the same error. Only by editing the soruce to give a body to teh glBegin and glEnd functions in GL/gl.h do the errors go away. Am I missing some sort of include file that has the definitions for those functions??
Having a very hard time trying to learn OpenGL programming if I cant use any of the functions http://www.opengl.org/discussion_boards/ubb/frown.gif
TIA for any help provided.
--Andrew M Dietz
GLwDrawA.h fglut.h glui.h glxproto.h viewmodel.h
GLwDrawAP.h gl.h glut.h glxtokens.h xmesa.h
GLwMDrawA.h gl_mangle.h glutf90.h moo.cpp xmesa_x.h
GLwMDrawAP.h glaux.h glx.h moo.cpp~ xmesa_xf86.h
algebra3.h glext.h glx_mangle.h osmesa.h
arcball.h glsmap.h glxext.h quaternion.h
fgl.h glu.h glxint.h stdinc.h
fglu.h glu_mangle.h glxmd.h tube.h
but when I compile a simple application with nothing except glBegin( GL_POINTS ); and glEND() I always get
/tmp/ccNQpAvJ.o(.text+0x16): In function `main':
: undefined reference to `glBegin'
collect2: ld returned 1 exit status
I even tried copying and pasting all the code from GL/gl.h into the source file that I called glBegin and glEnd from, but I still always get the same error. Only by editing the soruce to give a body to teh glBegin and glEnd functions in GL/gl.h do the errors go away. Am I missing some sort of include file that has the definitions for those functions??
Having a very hard time trying to learn OpenGL programming if I cant use any of the functions http://www.opengl.org/discussion_boards/ubb/frown.gif
TIA for any help provided.
--Andrew M Dietz