This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: openGL link errors
- To: "Larry Hall (RFK Partners, Inc)" <lhall at rfk dot com>
- Subject: Re: openGL link errors
- From: Jason Majors <jason at whizzird dot net>
- Date: Sun, 16 Jul 2000 11:03:16 -0700
- Cc: cygwin at sourceware dot cygnus dot com
- References: <20000714204224.A13364@magneto.whizzird.net> <4.3.2.7.2.20000716131116.00d2eb60@pop.ma.ultranet.com>
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@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@rfk.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@sourceware.cygnus.com