Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Reply-To: <nhv@cape.com>
From: "Norman Vine" <nhv@cape.com>
To: "'Patrick Reuter'" <preuter@labri.fr>, <cygwin@cygwin.com>
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

