jwetherill has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,
I am trying to embed c code into a perl script.
The problem is that when it comes to compiling the c code I am having a lot of errors of not finding included files.
The paths are in the PATH, but still not finding the files. Is there a way to sort this out?
Thanks

Replies are listed 'Best First'.
Re: Include directories not included
by rev_1318 (Chaplain) on Jul 06, 2005 at 10:19 UTC
    I'm not a C-programmer, but shouldn't that be the CPATH environment variable in which you list the include-directories?

    Paul

Re: Include directories not included
by blazar (Canon) on Jul 06, 2005 at 10:13 UTC
    Pointing out the obvious, maybe: have you tried Inline?
      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.

        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.