----- Original Message ----- 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jay Blanchard" <[EMAIL PROTECTED]>;
<inline@perl.org>
Sent: Wednesday, October 19, 2005 1:00 AM
Subject: RE: Compiler question...


> [snip]
> The problem in your example is that your "END_C" marker needs to be, um,
> at the end of the C. =)  Move it to right after the closing bracket of
> the greet() function.
> [/snip]
>
> I had already tried that, still the same result. A compilation error. I
> removed all but the C code and still got the same error.
>
> use Inline C => <<'END_C';
> void greet() {
>    printf("Hello, world\n");
> }
> END_C
>
> greet
>

What's the *complete* output you get from running that script (copy'n'paste)
?

Looks to me that the problem might be that the Inline module is not properly
installed, and that the error message reflects simply that. (That
"compilation" error you quoted is telling you that the *perl* code failed to
compile - not that the C code failed to compile.)

How did you install the Inline::C module ?

You will of course need a C compiler to compile your code, and it's probably
simplest to use the same C compiler as was used to build your perl - I'm
guessing that would be MSVC++ 6.0 in your case. If you do have a perl that
was built using MSVC++ 6.0 (eg ActiveState Perl or IndigoPerl) but don't
want to use MSVC++ 6.0, it's quite workable to use the freely available
MinGW (gcc) compiler if you also install either dmake or nmake (both freely
available), and ExtUtils::FakeConfig.

Cheers,
Rob

Reply via email to