help with UNIX include files
John S. Price
john at stat.tamu.edu
Wed Jan 17 09:45:35 AEST 1990
In article <1990Jan16.202640.357 at csusac.csus.edu> porterd at cssexb.csus.edu (darren porter) writes:
>
> I am trying to write some C programs on a UNIX machine running AT&T V/386
> release 3.2.2. My problem is that the cc compiler does not like anything
> to do with my #include <foo.h> files. Do I need to compile these .h files?
> I have found nothing in the manuals. Please reply...
>
>--- ucdavis!csusac!telco1!dporter
If you use #include <foo.h>, cpp will look for this file in
/usr/include (it will look for /usr/include/foo.h). If the include
files aren't there, you must use #include "/path.../foo.h", or if it
is in the directory you are compiling from, use #include "foo.h".
This sounds like your problem to me.
--------------------------------------------------------------------------
John Price | Morals define our path through life,
john at stat.tamu.edu | And everyone's path is different... - Me
--------------------------------------------------------------------------
More information about the Comp.lang.c
mailing list