Peter Sinnott wrote:
On Wed, Sep 03, 2003 at 10:21:52AM +0200, Patrik Jacoby wrote:
It's just that the inline function can't be found for some reason - so perl assumes the function must be loadable from an .al file - but can't find that file because it doesn't (and shouldn't) exist.
ok, I'm trying to include the c functions to encode punycode in my perl script:
Hi, since you have PREFIX specified I think you need to call Xcode_puny_decodeString when you wish to use the function from perl.
#!/usr/bin/perl
use Inline C => DATA => LIBS => '-lxcode', TYPEMAPS => './typemap', BUILD_NOISY => '1', PREFIX => 'c_';
my $arg = shift; my $result; my $len;
c_Xcode_puny_decodeString( $arg, length($arg), $result, $len );
Thanks a lot - looks like I misunderstood the PREFIX option. Now Perl is working (also I got a core dump, but that's another story...)
Xcode_puny_decodeString( $arg, length($arg), $result, $len );
print "$arg . : $result\n";
#include <xcode.h> int c_Xcode_puny_encodeString( void * pdwzInputString, int iInputSize,
