Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Andrew Markebo Subject: Re: MESA Date: Wed, 19 Feb 2003 21:11:56 +0100 Lines: 22 Message-ID: References: <000701c2d852$884cfd20$70eaec82 AT mindcooler> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 Cancel-Lock: sha1:avHjsQpeIpntABd1SGXL0AppVMw= / Mikael Åsberg 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/