question about the -I option
maser rati
maseriyer@yahoo.com
Sat Jan 27 02:33:00 GMT 2007
HI,
I'm on Fedora Core 4, with GNU C version 4.0.0
20050519 (Red Hat 4.0.0-8) (i386-redhat-linux).
I have this directory structure:
test
/ \
/ \
hello.c include
\
hello.h
hello.c contains #include <include/hello.h>
if I would need to compile hello.c into an executable,
does this sound right ?
[root@localhost test]# gcc -I ./include/ hello.c
I'm getting an error:
hello.c:2:27: error: include/hello.h: No such file or
directory
I've no idea where I might be going wrong with this
one.
Pointers would be appreciated.
Thanks,
iyer
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
More information about the Gcc-help
mailing list