Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.2.7.0.20010507092630.00b73568@irispavp.igb.umontreal.ca> X-Sender: bleau2 AT irispavp DOT igb DOT umontreal DOT ca X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 07 May 2001 09:33:53 -0400 To: cygwin AT cygwin DOT com From: Andre Bleau Subject: RE: glut Problems... Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed X-MDRemoteIP: 10.52.48.85 X-Return-Path: bleau AT igb DOT umontreal DOT ca X-MDaemon-Deliver-To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id JAA08485 >Patrick Reuter writes: > > > >I have reinstalled cygwin recently. > > > >Before, I never had problems with the glut library, but now using the > >following compilation command: > > > >g++ -pg -O2 -Wall -g main.o ......... -o a.out > >//w/lib/NT/opengl32.lib //w/lib/NT/glu32.lib //w/lib/NT/glut32.lib These .lib are not for linking with Cygwin's g++; don't use them. Instead, link with -lglut32 -lglu32 -lopengl32 . This is explained in the README.txt file in /usr/doc/opengl-1.1.0 . > > > >the linker doesn't find the glut references anymore: > > > >undefinded reference to 'glutMainLoop()' etc. > >You need WIN32 defined for the proper declarations >to be picked up from many header files > >easiest to do by adding -mwin32 to the compiler flags > >also see >http://sources.redhat.com/ml/cygwin/2001-05/msg00257.html WIN32 definition and/or -mwin32 are not necessary for Glut programs. >Norman Vine André Bleau, Cygwin's OpenGL package maintainer. email: bleau at igb dot umontreal dot ca (Fight SPAM: encode your email-address) -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple