delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/16/14:05:03

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
Date: Sun, 16 Jul 2000 11:03:16 -0700
From: Jason Majors <jason AT whizzird DOT net>
To: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: openGL link errors
Message-ID: <20000716110316.A14517@magneto.whizzird.net>
References: <20000714204224 DOT A13364 AT magneto DOT whizzird DOT net> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20000716131116 DOT 00d2eb60 AT pop DOT ma DOT ultranet DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.2i
In-Reply-To: <4.3.2.7.2.20000716131116.00d2eb60@pop.ma.ultranet.com>; from lhall@rfk.com on Sun, Jul 16, 2000 at 01:11:41PM -0400

I read that thread, but it doesn't really apply here. All of the functions I'm
calling are already setup as 'extern void APIENTRY'.

When I comment out the LINK_OPTS macro in my Makefile, I get the exact same
results, so it looks like it can't find the libraries (they're in /lib) or it
doesn't understand how to read them.

On Sun, Jul 16, 2000 at 01:11:41PM -0400, Larry Hall (RFK Partners, Inc) wrote:
> At 11:42 PM 7/14/00, you wrote:
I'm trying to compile a simple openGL application under cygwin.
I have the latest version of everything (as of July 14) from the yggdrasil.com 
mirror site. I followed the instructions for linking in the openGL README, but
I'm still getting errors like:
main.o(.text+0x31):main.c: undefined reference to `glColor3f AT 12'
I get about 20 of these from various gl* and glut* functions.

Here is the important part of the Makefile:

INCLUDE=-I/usr/local/include
LINK_OPTS=-lglut32 -lglu32 -lopengl32

gluthello: main.o
        $(CC) $(LINK_OPTS) -o gluthello main.o

main.o: main.c
        $(CC) $(INCLUDE) -c main.c

> 
> 
> 
> See the thread on glGetString...
> 
> 
> 
> Larry Hall                              lhall AT rfk DOT com
> RFK Partners, Inc.                      http://www.rfk.com
> 118 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - FAX
>                                        (508) 560-1285 - cell phone

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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