help with UNIX include files

Henry Spencer henry at utzoo.uucp
Sat Jan 20 05:18:59 AEST 1990


In article <602 at sagpd1.UUCP> jharkins at sagpd1.UUCP (Jim Harkins) writes:
>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...

Actually this is implementation-dependent, although most compilers do it
as you describe.
-- 
1972: Saturn V #15 flight-ready|     Henry Spencer at U of Toronto Zoology
1990: birds nesting in engines | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list