delorie.com/archives/browse.cgi | search |
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 |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <4.3.2.7.0.20030120120054.00b88690@irispavp.igb.umontreal.ca> |
X-Sender: | bleau2 AT irispavp DOT igb DOT umontreal DOT ca |
Date: | Mon, 20 Jan 2003 12:01:52 -0500 |
To: | cygwin AT cygwin DOT com |
From: | Andre Bleau <bleau AT igb DOT umontreal DOT ca> |
Subject: | Re: Building opengl applications |
Mime-Version: | 1.0 |
X-MDRemoteIP: | 10.52.50.2 |
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 h0KH4Mv23385 |
Mikael Ĺsberg wrote: >Hello, I am trying to build a simple OpenGL program (an example taken from >the famous "Red Book"). However, during the build process the following >error messages are displayed: > >/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0xe):test.c: >undefined reference to `glEnableClientState AT 4' >/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x1d):test.c: >undefined reference to `glEnableClientState AT 4' >/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x44):test.c: >undefined reference to `glVertexPointer AT 16' >/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x6b):test.c: >undefined reference to `glColorPointer AT 16' >/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0x92):test.c: >undefined reference to `glInterleavedArrays AT 12' Messages like that may be an indication that you are using the wrong header files or the wrong librairies. You should use the headers from /usr/include/GL. They should have lines near the top that say: ** Modified to provide correct APIENTRY and WINGDIAPI definitions ** for Cygwin and Mingw >Actually, there is more, but each error is an undefined reference so it >seems gcc cannot find >the libraries. I did install them, though. >Building with -glut32 -lglu32 -lopengl32 It's -lglut32. Be sure to put -lglut32 -lglu32 -lopengl32 on the linking line _after_ any files that require them. >What am I doing wrong? > >Hope you can help me =) > >// Mikael André Bleau, Cygwin's OpenGL package maintainer. email: bleau at igb dot umontreal dot ca (Fight SPAM: encode your email-address) Please address all questions and problem reports about Cygwin's OpenGL package to cygwin AT cygwin DOT com . -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |