From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 01:05:40 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8158C16A4CE for ; Thu, 5 Aug 2004 01:05:40 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 874BF43D3F for ; Thu, 5 Aug 2004 01:05:39 +0000 (GMT) (envelope-from mayday@gmx.net) Received: (qmail 885 invoked by uid 65534); 5 Aug 2004 01:05:38 -0000 Received: from pD95EE492.dip0.t-ipconnect.de (EHLO [192.168.0.12]) (217.94.228.146) by mail.gmx.net (mp019) with SMTP; 05 Aug 2004 03:05:38 +0200 X-Authenticated: #431110 From: Benjamin Sobotta To: Jason Dusek Date: Thu, 5 Aug 2004 03:11:36 +0000 User-Agent: KMail/1.6.2 References: <20040804205325.1432.qmail@web50303.mail.yahoo.com> <4111824D.9040707@uiowa.edu> In-Reply-To: <4111824D.9040707@uiowa.edu> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408050311.36514.mayday@gmx.net> cc: questions@freebsd.org Subject: Re: C include question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 01:05:40 -0000 Hi! My stuff is also in /usr/X11R6/include/GL and I use to following line to=20 compile: gcc -I /usr/X11R6/include/ -L /usr/X11R6/lib -lglut -lGLU -lGL -lXmu -lXext= =20 =2DlX11 -lm file.c Works for all the code examples given on www.opengl.org. Hope that helps Ben On Thursday 05 August 2004 00:41, you wrote: > No, because the libs have include statements in them. For example, in my > source code I might write: > > #include "/usr/X11R6/include/GL/glut.h" > > But this fails because glut.h has the following statements in it: > > #include > #inlcude > > For it to work, I would have to ammend it to say: > > #include "gl.h" > #inlcude "glu.h" > > But at the point where I am rewriting bits of the standard GL libraries, > it's time to take a different approach. > > _jason > > Jorge Mario G. wrote: > > Hi there > > cant you just use > > #include "/the/libs/are/here" > > > > =3D=3D=3D=3D=3D > > > > > > _________________________________________________________ > > Do You Yahoo!? > > Informaci=F3n de Estados Unidos y Am=E9rica Latina, en Yahoo! Noticias. > > Vis=EDtanos en http://noticias.espanol.yahoo.com > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"