in reply to Re^2: With Inline::C, how to link to external library? (XS)
in thread With Inline::C, how to link to external library?
The first line of that code is wrong. The corrected version of that script is:use Inline C => 'END'; say(); __END__ __C__ void say() { printf("6\n"); }
Update: An alternative way of writing out the script would be:use Inline C; say(); __END__ __C__ void say() { printf("6\n"); }
I think that might have led to your confusion.say(); use Inline C => <<'END'; void say() { printf("6\n"); } END
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: With Inline::C, how to link to external library? (XS)
by stevieb (Canon) on Aug 09, 2016 at 13:20 UTC | |
|
Re^4: With Inline::C, how to link to external library? (XS)
by Anonymous Monk on Aug 09, 2016 at 15:16 UTC |