Heh, whats going on?
Good question ... I don't have an answer to that ;-)
Your code still results in the same error for me:
fatal error: EXTERN.h: No such file or directory.
Looks like the "-iquote" that my Inline-C-0.81 invokes is stuffing things up.
UPDATE: No, it has nothing to do with "-iquote". Turns out that when I switched to I-C-0.76 I also switched to EU-MM-7.04, and the problem I'm facing is due solely to a change that occurs in EU::MM some time between 7.0401 (which is fine) and 7.1001 (which breaks Inline::C). I'll investigate further when I get a chance and file a bug report if warranted.
What version of Inline::C are you running ? When I switch to Inline-C-0.76, your script works fine - as does mine if I replace the incorrect
SV * foo(... with
void foo(....
But now I'm puzzled as to the output we get for
printf("***%s***\n", MY_FORMAT);
The quotes either side of
%.17e are apparently missing from MY_FORMAT. So how does
printf(MY_FORMAT, sqrt(2.0)) even compile ?
Can you explain that ?
BTW, seems that my problem with finding a correct rendition for the DEFINE in the Makefile.PL is dependent upon the version of EU::MM.
With EU-MM-7.04, this is fine:
DEFINE => q["-DMY_FORMAT=\\"%.17\\""];
But with EU-MM-7.34 (which is what I've been using) the crucial percentage symbol is still being omitted.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.