This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
OpenGL, undefined references
- From: matthewb <matthewb at cc dot usu dot edu>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 20 Apr 2005 09:13:18 -0600
- Subject: OpenGL, undefined references
- Reply-to: cygwin-xfree at cygwin dot com
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>