This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: MESA
- From: Andrew Markebo <andrew dot markebo at telia dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 19 Feb 2003 21:11:56 +0100
- Subject: Re: MESA
- Cancel-lock: sha1:avHjsQpeIpntABd1SGXL0AppVMw=
- References: <000701c2d852$884cfd20$70eaec82@mindcooler>
/ Mikael Åsberg <mikas493 at student dot liu dot se> wrote:
| [...]
| I get the following linking error:
| /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/cccQYzSg.o(.text+0x1f):test.c:
| undefined reference to `_glutMainLoop'
| collect2: ld returned 1 exit status
|
| $ gcc -Wall -o test
| test.c -L/usr/local/lib/GL -L/usr/local/lib/GLU -L/usr/local/lib/GLUT
|
[...]
|
| What am I missing?
You are missing to tell gcc which libs to link with, you need
something like "-lGL -lGLU -lOSMesa and -lglut".. which order I don't
know, check the docs.. ,-)
/Andy
--
The eye of the beholder rests on the beauty!
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/