mimeng
高手请看下
代码:
#!/usr/bin/perl -w
use Inline C => Config => MYEXTLIB => '/home/wyg/perl/callc/inlinecase/mylib.so';
use Inline C => << "C_CODE ";
extern void hello();
void myfunc(int a, int b)
{
hello();
}
C_CODE
print myfunc(5, 9),"/n ";
#include <stdio.h>
#include "mylib.h"
extern void hello()
{
printf("Success call from perl to c libray!/n");
return;
}
执行如下错误:
Can't find 'boot_test1_pl_ed80' symbol in /home/wyg/perl/callc/inlinecase/_Inlin
e/lib/auto/test1_pl_ed80/test1_pl_ed80.dll
at /usr/lib/perl5/site_perl/5.8/Inline.pm line 500
at ./test1.pl line 9
BEGIN failed--compilation aborted at ./test1.pl line 9.