From owner-freebsd-questions Mon Aug 9 0:19:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from relay.cs.tcd.ie (relay.cs.tcd.ie [134.226.32.56]) by hub.freebsd.org (Postfix) with ESMTP id BF0A514D64 for ; Mon, 9 Aug 1999 00:19:54 -0700 (PDT) (envelope-from william.leeson@cs.tcd.ie) Received: from cs.tcd.ie (pc458.cs.tcd.ie [134.226.38.181]) by relay.cs.tcd.ie (8.9.1a/8.9.1) with ESMTP id IAA24939; Mon, 9 Aug 1999 08:14:35 +0100 (BST) Message-ID: <37AE7FF1.65D7030E@cs.tcd.ie> Date: Mon, 09 Aug 1999 08:14:57 +0100 From: Willy Organization: Trinity College Dublin X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kyle Buttress Cc: FreeBSD Questions List Subject: Re: Mesa ??? References: <37AE79F7.D1E843BE@pchost.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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