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 sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.3.2.7.0.20010523092329.00b1eb30@irispavp.igb.umontreal.ca> |
X-Sender: | bleau2 AT irispavp DOT igb DOT umontreal DOT ca |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.2 |
Date: | Wed, 23 May 2001 09:37:51 -0400 |
To: | cygwin AT cygwin DOT com |
From: | Andre Bleau <bleau AT igb DOT umontreal DOT ca> |
Subject: | Re: Errors compiling OpenGL application |
Mime-Version: | 1.0 |
X-MDRemoteIP: | 10.52.48.85 |
X-Return-Path: | bleau AT igb DOT umontreal DOT ca |
X-MDaemon-Deliver-To: | cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id JAA31439 |
"Claude Eckel" <pinky dot gahr at web dot de> wrote: >I compiled a library called 'PLIB' using cygwin. Everything worked fine. >Then I tried to compile a game using this lib and I got about 6 sides of >errors like this: >undefined reference to 'glVertexi AT 8' >undefined reference to 'glBegin AT 4' >undefined reference to 'glEnd AT 0' > >If you want to see the command I used: > >c++ >MIP1.00.cpp -o./MIP.exe -I/usr/include/plib/ -lglut32 -lopengl32 -lGLU32 -lp >libssg -lplibsg -lplibpu -lplibfnt -lplibul > >What should I do / include? The order of libraries is important. I don't know anything about PLIB, but Glut, Glu and OpenGL don't call these libraries, so I would put PLIB librairies before them. Also, Glu calls OpenGL so -lglu32 has to be before -lopengl32. I would modify your compilation command as follow: g++ MIP1.00.cpp -o MIP.exe -I/usr/include/plib/ -lplibssg -lplibsg \ -lplibpu -lplibfnt -lplibul -lglut32 -lglu32 -lopengl32 You should read the REAME.txt file in /usr/doc/opengl-1.1.0 . 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |