This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: glut (for X) cannot be compiled without -mno-cygwin
- From: "Yaakov S (Cygwin Ports)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 08 Aug 2006 18:44:51 -0500
- Subject: Re: glut (for X) cannot be compiled without -mno-cygwin
- References: <20060807115608.GA11786@imkf-pc73.imkf.tu-freiberg.de>
- Reply-to: cygwin-xfree at cygwin dot com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jens Seidel wrote:
> $ g++ -H -g -O2 -I/usr/X11R6/include main.cpp -lglut
> . /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/GL/glut.h
>
> The references to w32api/GL are probably wrong!
> Once I omit -I/usr/X11R6/include (or use -mno-cygwin) it works:
Is freeglut installed? It appears not.
> $ g++ -H -g -O2 main.cpp -lglut
> . /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/GL/glut.h
> .. /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/GL/gl.h
> .. /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api/GL/glu.h
> ... /usr/lib/gcc/i686-pc-cygwin/3.4.4/include/stddef.h
>
> Since I want to build an X application I do not want to use w32api/GL or
> -mno-cygwin! Any idea?
g++ -g -O2 -I/usr/X11R6/include -L/usr/X11R6/lib main.cpp -lglut
You need to specify the -L/usr/X11R6/lib also, since that's where the
X11 glut library is found.
Yaakov
Cygwin Ports
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFE2SHzpiWmPGlmQSMRAo+sAJ98vY/98a9VCaH0h+3S/nD4WkeH4ACcCjUM
qpUg2/gW+ny/gtLx9RMEUpQ=
=yydY
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/