delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/29/18:13:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Subject: Win32 gcc and openGL
To: cygwin AT sourceware DOT cygnus DOT com
From: Jason_Majors AT eFunds DOT Com
Date: Thu, 29 Jun 2000 15:15:56 -0700
Message-ID: <OF5CBABCDD.21910BEA-ON0725690D.0078473D@deluxedata.com>
X-Priority: 3 (Normal)
X-MIMETrack: Serialize by Router on Poseiden/ACH/Deluxe Data/Deluxe Corporation(Release
5.0.1b|September 30, 1999) at 06/29/2000 03:15:59 PM
MIME-Version: 1.0

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 -lMesaGLU -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 AT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019