This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: glut Problems...


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

Norman Vine

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]