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
Message-Id: <4.3.2.7.0.20010507092630.00b73568@irispavp.igb.umontreal.ca>
X-Sender: bleau2@irispavp.igb.umontreal.ca
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Mon, 07 May 2001 09:33:53 -0400
To: cygwin@cygwin.com
From: Andre Bleau <bleau@igb.umontreal.ca>
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@igb.umontreal.ca
X-MDaemon-Deliver-To: cygwin@cygwin.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

