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

Yes that is what I am working on, trying to inline some c code.
So far the best I have come up with is

INC => '-I"path"'

Of course this work but for one path only. Can not seem to get a second one included.

Replies are listed 'Best First'.
Re^3: Include directories not included
by Corion (Patriarch) on Jul 06, 2005 at 10:27 UTC

    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.

      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"}.