#!/usr/bin/perl
use Inline C;
use Inline C => Config => MYEXTLIB => '/tmp/show.so';
use strict;
my $x=1;
my $y=2;
print "PERL:x=$x y=$y\n";
my $so=return_c_so($x);
print "C_SO:x+1=$so\n";
__END__
__C__
#include
#include
int return_c_so (int z) {
return show(z);
}
阅读(3180) | 评论(0) | 转发(1) |