adding a path to include search path

Eljay Love-Jensen eljay@adobe.com
Fri Jul 25 16:53:00 GMT 2003


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





More information about the Gcc-help mailing list