help with UNIX include files
Jim Harkins
jharkins at sagpd1.UUCP
Fri Jan 19 07:45:12 AEST 1990
In article <4092 at helios.TAMU.EDU>, john at stat.tamu.edu (John S. Price) writes:
> 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".
Close, but this ain't horseshoes. If you use #include "foo.h" the compiler
looks for foo.h in the directory the source file is in, not neccesarily
the directory you are compiling from. For example, if you are in the directory
fred and issue the command 'cc ../src/foo.c', foo.h will only be found if
it lives ../src, not if it lives in fred.
jim
"only dead fish go with the flow."
More information about the Comp.lang.c
mailing list