activeperl中inline::c的问题

activeperl中inline::c的问题

activeperl中inline::c的问题
我现在用的是ActivePerl 5.8.8 Build 820,C编译器用的是VC2005,写了一个简单的例子程序:

use Inline C;
print "9 + 16 = ", add(9, 16), "\n";
__END__
__C__
int add(int x, int y){
return x + y;
}

能够编译产生dll,但是运行时缺少msvcr80.dll。我把msvcr80.dll的路径加入后运行,提示DynaLoader.pm调用是dll初始化例程失败。

请问这是因为什么原因?怎么解决?谢谢
搭车问下同时上面的代码错.
搭车问下同时上面的代码错误如下:
Can't locate Perl.pm in @INC (@INC contains: C:/Perl/site/lib/ C:/Perl/site/lib C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/site/lib//Inline/Perl.pm line 8.
BEGIN failed--compilation aborted at C:/Perl/site/lib//Inline/Perl.pm line 8.
Compilation failed in require at (eval 8) line 1.

Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap a_pl_0525.xs > a_pl_0525.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv a_pl_0525.xsc a_pl_0525.c
cl -c -ID:/ -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\Perl\lib\CORE" a_pl_0525.c
NMAKE : fatal error U1077: 'cl' : return code '0xc0000135'
Stop.

A problem was encountered while attempting to compile and install your Inline
C code. The command that failed was:
nmake > out.make 2>&1

The build directory was:
D:\_Inline\build\a_pl_0525

To debug the problem, cd to the build directory, and inspect the output files.

at D:\a.pl line 0
INIT failed--call queue aborted.
哪位高手办忙解决下啊!!