Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
To: "Cygwin@Sourceware. Cygnus. Com" <cygwin@sourceware.cygnus.com>
Subject: Win32 gcc and openGL
Date: Fri, 30 Jun 2000 07:35:36 -0400
Message-ID: <MHEMLLEBIBOHNHCIECPACEDBCEAA.ssiddiqi@inspirepharm.com>
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 IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4131.1600
Importance: Normal

Use Cygwin 1.1.2

It has proper OpenGL and Glut libs and headers for non-X OpenGL.

Suhaib

----------------------
I'm trying to compile openGL code on Windows NT with cygwin b20 and
egcs-2.91.57. I have sgi's openGL dlls and Brian Kasper's precompiled Mesa
3.0 and glut 3.7.
My compile line is this:
gcc -mwindows -DWIN32 -dy -L/winnt/system32  -luser32 -lMesaGL -lglut -lMesa
GLU -o gluthello main.o

all of the lib*.a files are in or symlinked to the cygnus lib dir, but I get
warning: cannot find entry symbol _WinMainCRTStartup; defaulting to 00401000

then lots of undefined references to all the __glut*, gl*, and glut*
functions I used. Here's an example:
main.o(.text+0x49):main.c: undefined reference to
`__glutCreateMenuWithExit@8'

Obviously the linker can't find the libraries it needs.
Can anyone give me some instructions on how to set up the environment
correctly?

Thanks
Jason Majors





--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

