glut (for X) cannot be compiled without -mno-cygwin

Yaakov S (Cygwin Ports) yselkowitz@users.sourceforge.net
Tue Aug 8 23:45:00 GMT 2006


-----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/



More information about the Cygwin-xfree mailing list