Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Aug 1999 08:14:57 +0100
From:      Willy <william.leeson@cs.tcd.ie>
To:        Kyle Buttress <kyle@pchost.com>
Cc:        FreeBSD Questions List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Mesa ???
Message-ID:  <37AE7FF1.65D7030E@cs.tcd.ie>
References:  <37AE79F7.D1E843BE@pchost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Kyle Buttress wrote:

> Hi,
>
> I am trying to compile a simple mesa program but keep getting the
> following errors.
>
> /var/tmp/ccH130141.o: In function `display':
> /var/tmp/ccH130141.o(.text+0x9): undefined reference to `glClear'
> /var/tmp/ccH130141.o(.text+0x20): undefined reference to `glColor3f'
> /var/tmp/ccH130141.o(.text+0x2a): undefined reference to `glBegin'
>
> How can I get it all straight??  What am I not referencing and what am
> I missing?
>
> Thanks
>
>
>
> --
> Gauls!  We have nothing to fear; except perhaps that the sky may fall
> on our heads tomorrow.  But as we all know, tomorrow never comes!!
>                 -- Adventures of Asterix.
>
>

Look's like you forgot to link in the gl library. Try using the -lgl
switch to link in the OpenGL library you may also have to set up a path
for this if it's not in the usual place so use -L /usr/X11/lib if it is
in /usr/X11/lib etc.....



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37AE7FF1.65D7030E>