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 |
Date: | Tue, 18 Mar 2003 10:49:57 +0000 |
From: | Paul Sargent <Paul DOT Sargent AT 3dlabs DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Header problem with OGL on Cygwin |
Message-ID: | <20030318104957.GP32352@3dlabs.com> |
References: | <3E75F5E6 DOT 8020803 AT 3dlabs DOT com> <5 DOT 2 DOT 0 DOT 9 DOT 0 DOT 20030317133951 DOT 0263e228 AT irispavp DOT igb DOT umontreal DOT ca> |
Mime-Version: | 1.0 |
In-Reply-To: | <5.2.0.9.0.20030317133951.0263e228@irispavp.igb.umontreal.ca> |
User-Agent: | Mutt/1.4i |
Hi All, I'm currently having some problems linking with OpenGL under cygwin. I was hoping somebody who understands the system might be able to offer some advice. The problem I'm having is that when I try to link my object files together with "-lglut32 -lglu32 -lopengl32" I get messages stating that there are "undefined reference"(s) to "_glBegin", amonst other symbols. Searching through the archives I've spotted a message stating that this means I'm compiling with the wrong headers (The symbols should be of the form _glBegin AT 4'). It's at this point that I've lost the thread. My code contains "#include <GL/glut.h>" and doing a 'find / -name glut.h' only shows the one file located in /usr/include/GL. Similarly doing the same find for gl.h gives me one in /usr/include/GL and one in /usr/include/w32api/GL. My compile command is "gcc -c <source file>" My link command is "gcc -o <exe name> <object files> -lglut32 -lglu32 -lopengl32" Am I missing something simple? Thanks for any help you can provide Paul -- Paul Sargent mailto: Paul DOT Sargent AT 3Dlabs 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 |