in reply to Re^2: Include directories not included
in thread Include directories not included

You got your parameter quoting wrong. Usually you need to quote your parameters like this:

"-I$path"

because the shell does not know about the "inner" parameters. You can also try to give more than one -I switch instead.

Replies are listed 'Best First'.
Re^4: Include directories not included
by jwetherill (Initiate) on Jul 06, 2005 at 10:41 UTC
    Unfortunately I have tried to do more than one and the second -I seems to not work. INC => ("-I$path", "-I$path")
    This fails as I get an invalid usage. by doing it most other ways INC => ("-I'$path, $path'")
    This seems to do nothing.

      You did not get what I was aiming at. I was quoting you how it should look on the command line to the C compiler, not how it should look in your Perl code. In your Perl code, use the following:

      INC => qq{"-I$path"},

      or, if your shell supports single quotes, maybe use this:

      INC => "'-I$path'",

      Being the incredible Inline expert that I am (I've never used it ;-}), I'd try INC => qq{-I"$path1" -I"$path2"}.