Win32 gcc and openGL
Thu Jun 29 15:13:00 GMT 2000
I'm trying to compile openGL code on Windows NT with cygwin b20 and
egcs-2.91.57. I have sgi's openGL dlls and Brian Kasper's precompiled Mesa
3.0 and glut 3.7.
My compile line is this:
gcc -mwindows -DWIN32 -dy -L/winnt/system32 -luser32 -lMesaGL -lglut -lMesaGLU -o gluthello main.o
all of the lib*.a files are in or symlinked to the cygnus lib dir, but I get
warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000
then lots of undefined references to all the __glut*, gl*, and glut* functions I used. Here's an example:
main.o(.text+0x49):main.c: undefined reference to `__glutCreateMenuWithExit@8'
Obviously the linker can't find the libraries it needs.
Can anyone give me some instructions on how to set up the environment correctly?
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin