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]

Re: MESA


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


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