This is the mail archive of the cygwin@sources.redhat.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]

openGL link errors


I'm trying to compile a simple openGL application under cygwin.
I have the latest version of everything (as of July 14) from the yggdrasil.com 
mirror site. I followed the instructions for linking in the openGL README, but
I'm still getting errors like:
main.o(.text+0x31):main.c: undefined reference to `glColor3f@12'
I get about 20 of these from various gl* and glut* functions.

Here is the important part of the Makefile:

LINK_OPTS= -L/usr/local/lib -lglui -lglut32 -lglu32 -lopengl32

gluthello: main.o
	$(CC) $(LINK_OPTS) -o gluthello main.o

main.o: main.c
	$(CC) $(INCLUDE) -c main.c


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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