www.delorie.com/archives/browse.cgi | search |
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 |
Message-Id: | <4.3.2.7.0.20000615152728.00aef950@courriel.polymtl.ca> |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.2 |
Date: | Thu, 15 Jun 2000 15:38:59 -0400 |
To: | cygwin AT sourceware DOT cygnus DOT com |
From: | Andre Bleau <andre DOT bleau AT courriel DOT polymtl DOT ca> |
Subject: | libglut.a |
Mime-Version: | 1.0 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id PAA06417 |
How do one link with libglut.a or libglut32.a ? nm reveals that /lib/libglut.a does not define the glut functions but rather some reference to it; e.g., it defines glutInitDisplayMode AT 4 instead of glutInitDisplayMode. I can't link even the following simple test code: #include <string.h> #include <GL/glut.h> void main(int argc, char* argv[]) { /****************************************/ /* Initialize GLUT and create window */ /****************************************/ glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH ); } Ld complains an undefined reference to `glutInitDisplayMode' when I link with -lglut or -lglut32. André Bleau, ing., analyste bleau AT courriel DOT polymtl DOT ca Département de génie électrique et Electric Engineering and de génie informatique Computer Engineering department École Polytechnique de Montréal Montreal Polytechnic School -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |