question about the -I option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux