in reply to Re^2: Inline::C with minGW?
in thread Inline::C with minGW?

But does it means I can't change working directory?

If you know only that the library will be in the same folder as the script, but don't know the fully-qualified location of the script and library, then you'll have to use something like the approach that ikegami showed us.

By the way, in the example you gave in your original post, the actual working directory (from Inline's point of view) was C:\test\_Inline\build\test_pl_0ca9. The "\test\_Inline\build\" part is known in advance, and you can even configure things so that "test\_Inline" is replaced by the location of your choice. The "test_pl_0ca9" could also be determined in advance - but it will change everytime you make a change to the C code in the script.

Cheers,
Rob

Replies are listed 'Best First'.
Re^4: Inline::C with minGW?
by BrowserUk (Patriarch) on Oct 29, 2008 at 09:05 UTC
    he "test_pl_0ca9" could also be determined in advance - but it will change everytime you make a change to the C code in the script.

    You can avoid that (the appending of hex characters to the name), by using the NAME => 'yourname' Inline option. It also make finding the generated C files easier when it comes to tracking down bugs.

    Now if only there were an option that would prevent me from making fixes in the .c file instead of the .xs and then spending 10 minutes figuring out why nothing I do seems to change the error, and we (I) would be laughing.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.