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]
Other format: [Raw text]

GLUT programming in CygWin


Hi

Am starting out with the GLUT library and I am having trouble compiling my
first program under CygWin. I get the following compile/linker errors:

...
...
/cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd0):simple.c:
undefi
ned reference to `_glutDisplayFunc@4'
/cygdrive/c/DOCUME~1/steve/LOCALS~1/Temp/ccO1yqTt.o(.text+0xd8):simple.c:
undefi
ned reference to `_glutMainLoop@0'
collect2: ld returned 1 exit status


I am compiling with

gcc -lopengl32 -lglu32 -lglut32 test.c

and including <GL/glut.h> in test.c

CygWin version 1.5.5-1

Any help with the compile/link options or pointers to basic tutorials would
be appreciated.

Thanks
Steve




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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