OpenGL, undefined references

matthewb matthewb@cc.usu.edu
Wed Apr 20 15:13:00 GMT 2005


Hi,

I have searched everywhere I can think of and have found some similar 
questions but nothing that has worked for me yet. Here is what happens when I 
try to compile a program using opengl libraries, etc under cygwin. Can anyone 
offer some suggestions? Thank you.

Matt Berkemeier

cc -c -I/usr/include -I. quad-animate.c
cc -c -I/usr/include -I. windowdump.c
cc quad-animate.o windowdump.o -L/usr/freeware/lib \
-L/usr/X11R6/lib/ -lglut \
-lGLU -lGL -lXmu -lXext -lX11 -lm -o quad-animate
quad-animate.o(.text+0xd2):quad-animate.c: undefined reference to `_glClear@4'
quad-animate.o(.text+0xda):quad-animate.c: undefined reference to 
`_glPushMatrix@0'
quad-animate.o(.text+0xf9):quad-animate.c: undefined reference to 
`_glColor3f@12'
quad-animate.o(.text+0x124):quad-animate.c: undefined reference to 
`_glRectf@16'

<remaining undefined references deleted>




More information about the Cygwin-xfree mailing list