This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: adding a path to include search path
Hi Justin,
In your makefile, add the CC and CXX defined variables:
--------8<--------
CC := gcc -idirafter /home/justin/kcool
CXX := g++ -idirafter /home/justin/kcool
# yada yada yada...
--------8<--------
Or you can do it from the command line:
make CC='gcc -idirafter /home/justin/kcool' CXX='g++ -idirafter /home/justin/kcool' -f MyKCoolProject
If your makefile isn't using $(CC) and $(CXX) for compilation (**gasp**!), you'll need to find an alternative.
HTH,
--Eljay