Date: Wed, 4 Aug 2004 13:37:20 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: jason-dusek@uiowa.edu (Jason Dusek) Cc: questions@freebsd.org Subject: Re: C include question Message-ID: <200408041737.i74HbLR03250@clunix.cl.msu.edu> In-Reply-To: <41111B17.2080200@uiowa.edu> from "Jason Dusek" at Aug 04, 2004 12:21:27 PM
next in thread | previous in thread | raw e-mail | index | archive | help
> > Hi, > > I would like to compile some OpenGL stuff on my BSD box. Unfortunately, the GL > libraries are not in /usr/include/GL - they are in /usr/X11R6/include/GL and my > C compiler does not see that by default. Check out compiler options such as -I for include file directories and linker options such as -L for library directories. See man cc ////jerry > > One easy way around this is, I think, to just soft link /usr/X11R6/include/* to > /usr/include/ - but that would defeat the point of seperating the X11 includes > from the system includes. What is the right way to set this up so that my C > compiler, no matter which one it is, will always find the GL libraries? Is there > some kind of 'cc.conf' somewhere in the same sense as there is a 'make.conf'? > > I am new to C - in fact this OpenGL stuff is my first exposure to it. I'm sure > that this is an elementary question, and the only reason that I post it to the > list is that I am trying to find a way to solve my problem that is more in > keeping with BSD philosophy than simply moving /usr/X11R6/include into /usr/include. > > _jason > _______________________________________________ > 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?200408041737.i74HbLR03250>