in reply to Re^4: Help with Inline C
in thread Help with Inline C

now i have some mis-formed lines

I have not struck this problem before (though it seems mwah has). Do you mean that the following simple Inline::C function leads to a corrupted XS file:
void greet() { printf("Hello World\n"); }
If not, then can you provide a *small* complete script that demonstrates the issue.

Cheers,
Rob
Update:I hadn't noticed the OP's usage of <<END_C and wasn't aware of the gotcha (explained below by tye) associated with that usage.

Replies are listed 'Best First'.
Re^6: Help with Inline C (<<)
by tye (Sage) on Oct 16, 2007 at 04:10 UTC

    <<END_C is the same as <<"END_C" which means one needs to put a backslash in front of any occurrences of \, $, or @ in the following C code. If he used <<'END_C' instead, then he wouldn't have that problem.

    - tye