Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2004 03:11:36 +0000
From:      Benjamin Sobotta <mayday@gmx.net>
To:        Jason Dusek <jason-dusek@uiowa.edu>
Cc:        questions@freebsd.org
Subject:   Re: C include question
Message-ID:  <200408050311.36514.mayday@gmx.net>
In-Reply-To: <4111824D.9040707@uiowa.edu>
References:  <20040804205325.1432.qmail@web50303.mail.yahoo.com> <4111824D.9040707@uiowa.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <gl.h>
>    #inlcude <glu.h>
>
> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408050311.36514.mayday>