X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: John M Fernandes-Salling To: cygwin AT cygwin DOT com Message-ID: Date: Sun, 02 Nov 2008 19:00:06 -0500 X-Mailer: Sun Java(tm) System Messenger Express 6.3-5.02 (built Oct 12 2007; 32bit) MIME-Version: 1.0 Content-Language: en Subject: Trouble Compiling Cygwin GLUT Examples Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hello, I'm running Cygwin on a Windows Vista computer, and I'm having trouble compiling the example GLUT c file "helloGlut.c" provided in the Cygwin OpenGL package. Using Cygwin, after navigating to the directory "/cygdrive/c/cygwin/usr/share/doc/opengl-1.1.0/GLUTExamples/Cygwin", I type "make helloGlut" without quotes, and the output is: "cc -c -O2 helloGlut.c cc -O2 helloGlut.o -lglut32 -lglu32 -lopengl32 -o helloGlut helloGlut.o:helloGlut.c:(.text+0x86): undefined reference to '_glutInit' helloGlut.o:helloGlut.c:(.text+0x92): undefined reference to '_glutCreateWindow' helloGlut.o:helloGlut.c:(.text+0x9e): undefined reference to '_glutDisplayFunc' helloGlut.o:helloGlut.c:(.text+0xaa): undefined reference to '_glutKeyboardFunc' helloGlut.o:helloGlut.c:(.text+0xbb): undefined reference to '_glutMainLoop' collect2: ld returned 1 exit status make: *** [helloGlut] Error 1" without quotes. As far as I can tell, I've followed the instructions for setting up OpenGL, GLU, and GLUT within Cygwin, so I'm at a loss as to what the problem is. I'm new both to programming in C, OpenGL, and using Cygwin, having formerly programmed in Java with the JOGL binding for OpenGL. Any help would be greatly appreciated. Thank you for your time, John Fernandes-Salling -- 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/