This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: OpenGL, undefined references
- From: Alexander Gottwald <alexander dot gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Wed, 20 Apr 2005 17:43:13 +0200 (MEST)
- Subject: Re: OpenGL, undefined references
- References: <4266ADF3@webster.usu.edu>
- Reply-to: cygwin-xfree at cygwin dot com
On Wed, 20 Apr 2005, matthewb wrote:
> 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.
cygwin comes with two flavours of opengl libraries. The native and the X11 ones.
The native ones have headers in /usr/include/GL and libraries in /usr/lib, the
X11 ones have the headers in /usr/X11R6/include/GL and libraries in /usr/X11R6/lib
By adding -I/usr/include you force using the native headers but you link with the
X11 libraries. Change the -I/usr/include to -I/usr/X11R6/include.
bye
ago
--
Alexander.Gottwald@s1999.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723