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 Reply-To: From: "Norman Vine" To: "'Patrick Reuter'" , Subject: RE: glut Problems... Date: Mon, 7 May 2001 07:56:30 -0400 Message-ID: <000101c0d6ec$c1bd2bc0$a300a8c0@nhv> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 In-Reply-To: <3AF65A94.D9A8FBF4@labri.fr> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 > >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 Norman Vine -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple