This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Header problem with OGL on Cygwin
- From: Paul Sargent <Paul dot Sargent at 3dlabs dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 18 Mar 2003 10:49:57 +0000
- Subject: Header problem with OGL on Cygwin
- References: <3E75F5E6.8020803@3dlabs.com> <5.2.0.9.0.20030317133951.0263e228@irispavp.igb.umontreal.ca>
Hi All,
I'm currently having some problems linking with OpenGL under cygwin. I was
hoping somebody who understands the system might be able to offer some
advice.
The problem I'm having is that when I try to link my object files together
with "-lglut32 -lglu32 -lopengl32" I get messages stating that there are
"undefined reference"(s) to "_glBegin", amonst other symbols.
Searching through the archives I've spotted a message stating that this
means I'm compiling with the wrong headers (The symbols should be of the
form _glBegin at 4'). It's at this point that I've lost the thread. My code
contains "#include <GL/glut.h>" and doing a 'find / -name glut.h' only shows
the one file located in /usr/include/GL. Similarly doing the same find for
gl.h gives me one in /usr/include/GL and one in /usr/include/w32api/GL.
My compile command is "gcc -c <source file>"
My link command is "gcc -o <exe name> <object files> -lglut32 -lglu32
-lopengl32"
Am I missing something simple?
Thanks for any help you can provide
Paul
--
Paul Sargent
mailto: Paul dot Sargent at 3Dlabs dot com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/