Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 1997 22:44:10 -0600
From:      Randy DuCharme <randyd@nconnect.net>
To:        questions@freebsd.org
Subject:   How do I set include paths?
Message-ID:  <32FFF91A.41C67EA6@nconnect.net>

next in thread | raw e-mail | index | archive | help
Greetings,

I'm trying to build a few simple X programs but seem to have a bit of
difficulty with my include paths. I can't figure out how to set it 
correctly.  For example...

// -- foo.c ** Sample source file

#include <X11/Xos.h>
#include <x11/Xlib.h>

...

// -- end foo.c



% gcc -g  -c foo.c


On a 2.1.6 machine I have at work, the above would compile, but on my
3.0-current machine at home, I get.....


foo.c:12: X11/Xos.h: No such file or directory
foo.c:13: x11/Xlib.h: No such file or directory
...
*** Error code 1

Stop.

Now if I do a...

% gcc -g -I/usr/X11R6/include -c foo.c 
 
it works. 

Is there an environment variable I can set to change this?... I feel
really stupid asking this, but it's driving me buggy.  Regrettably, I'm
used to VC++, and Borland's products for DOS / Windows.  They did all of
this stuff for me.  


-- 
Randall D. DuCharme                  email: randyd@nconnect.net
Systems Engineer                        Free your Machine                
Computer Specialists                    **** FreeBSD ****
414-259-9998 414-253-9919 (fax)   Turning PCs into Workstations



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32FFF91A.41C67EA6>