delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/18/15:10:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: Mark Sheppard <mark AT ddf DOT net>
Date: Tue, 18 Dec 2001 20:09:59 +0000
To: cygwin AT cygwin DOT com
Subject: linking with glut32.lib?
Message-ID: <20011218200959.GH4554@ddf.net>
Mime-Version: 1.0
User-Agent: Mutt/1.3.24i
X-PGP-Public-Key: https://www.ddf.net/~mark/
X-PGP-Fingerprint: 1BB3 0616 CB29 EAAC 5DE1 86D4 B3C0 D7A7 3F4C 9332

Hi,

I'm trying to get a GLUT application compiled under cygwin and am
having a spot of bother.  I've got it going fine under Linux (my
preferred platform - I try not to touch Windows if I can help it), but
I'd like to have Windows users be able to run it too and Cygwin seemed
the obvious choice.

Anyway I've put glut32.{dll,lib} from
http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip and
{glu,opengl}32.{dll,lib} from
http://download.microsoft.com/download/win95upg/info/1/W95/EN-US/Opengl95.exe
in /usr/local/lib and then tried to link it like this:

  gcc *.o /usr/local/lib/glut32.lib /usr/local/lib/opengl32.lib \
    /usr/local/lib/glu32.lib -lm -o program

but I get errors like this:

  whatever.o:123: undefined reference to `glutInit AT 8'

so am I right in thinking there's something wrong with glut32.lib?
All the references to functions in opengl32.lib and glu32.lib resolve
OK, but not any to the functions in glut32.lib.  How can I fix this or
is there a different glut32.{dll,lib} that I should be using?

Thanks for any assistance,
Mark.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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