This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
question about the -I option
- From: maser rati <maseriyer at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 26 Jan 2007 18:33:34 -0800 (PST)
- Subject: question about the -I option
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