glut Problems...

Andre Bleau bleau@igb.umontreal.ca
Mon May 7 06:33:00 GMT 2001


>Patrick Reuter writes:
> >
> >I have reinstalled cygwin recently.
> >
> >Before, I never had problems with the glut library, but now using the
> >following compilation command:
> >
> >g++ -pg -O2 -Wall -g    main.o .........  -o a.out
> >//w/lib/NT/opengl32.lib //w/lib/NT/glu32.lib //w/lib/NT/glut32.lib

These .lib are not for linking with Cygwin's g++; don't use them. Instead, 
link with -lglut32 -lglu32 -lopengl32 . This is explained in the README.txt 
file in /usr/doc/opengl-1.1.0 .

> >
> >the linker doesn't find the glut references anymore:
> >
> >undefinded reference to 'glutMainLoop()' etc.
>
>You need WIN32 defined for the proper declarations
>to be picked up from many header files
>
>easiest to do by adding -mwin32 to the compiler flags
>
>also see
> http://sources.redhat.com/ml/cygwin/2001-05/msg00257.html

WIN32 definition and/or -mwin32 are not necessary for Glut programs.


>Norman Vine


André Bleau, Cygwin's OpenGL package maintainer.

email: bleau at igb dot umontreal dot ca
(Fight SPAM: encode your email-address)



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list