Hi all, I'm having a issue with Inline::CPP 0.25 using Perl 5.8.8 on windows xp running Visual Studio 2010. Inline wants to use MSVCIRT.LIB but is not in Visual Studio 2010 so I used MSVCPRT.LIB instead.
It writes Makefile ok but nmake test fails..... out put is below: C:\Inline-CPP-0.25>make test 'make' is not recognized as an internal or external command, operable program or batch file. C:\Inline-CPP-0.25>nmake test Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile all -nologo cd .. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01basic..... Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap C:\Inline-CPP-0.25\_Inline\build\_01basic_t_5 cd2\CPP.map _01basic_t_5cd2.xs > _01basic_t_5cd2.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv _01basic_t_5cd2.xsc _01basic_t_5cd2.c cl -TP -c -IC:/Inline-CPP-0.25/t -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" _01basic_t_5cd2.c NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. A problem was encountered while attempting to compile and install your Inline CPP code. The command that failed was: nmake > out.make 2>&1 The build directory was: C:\Inline-CPP-0.25\_Inline\build\_01basic_t_5cd2 To debug the problem, cd to the build directory, and inspect the output files. at t/01basic.t line 30 BEGIN failed--compilation aborted at t/01basic.t line 64. t/01basic.....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t/02prefix.... Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap C:\Inline-CPP-0.25\_Inline\build\_02prefix_t_ 4ede\CPP.map _02prefix_t_4ede.xs > _02prefix_t_4ede.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv _02prefix_t_4ede.xsc _02prefix_t_4ede.c cl -TP -c -IC:/Inline-CPP-0.25/t -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" _02prefix_t_4ede.c NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. A problem was encountered while attempting to compile and install your Inline CPP code. The command that failed was: nmake > out.make 2>&1 The build directory was: C:\Inline-CPP-0.25\_Inline\build\_02prefix_t_4ede To debug the problem, cd to the build directory, and inspect the output files. at t/02prefix.t line 0 INIT failed--call queue aborted. t/02prefix....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01basic.t 2 512 10 20 200.00% 1-10 t/02prefix.t 2 512 4 8 200.00% 1-4 Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. C:\Inline-CPP-0.25>perl Makefile.PL This will configure and build Inline::C++. What default C++ compiler would you like to use? [cl -TP] What default libraries would you like to include? [MSVCIRT.LIB] msvcprt.lib Writing Makefile for Inline::CPP::grammar Writing Makefile for Inline::CPP C:\Inline-CPP-0.25>nmake Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Skip blib\lib\Inline\CPP.pm (unchanged) Skip blib\lib\Inline\CPP.pod (unchanged) "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile all -nologo cd .. C:\Inline-CPP-0.25>nmake test Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. "C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\nmake.exe" -f Makefile all -nologo cd .. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01basic..... Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap C:\Inline-CPP-0.25\_Inline\build\_01basic_t_5 cd2\CPP.map _01basic_t_5cd2.xs > _01basic_t_5cd2.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv _01basic_t_5cd2.xsc _01basic_t_5cd2.c cl -TP -c -IC:/Inline-CPP-0.25/t -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" _01basic_t_5cd2.c NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. A problem was encountered while attempting to compile and install your Inline CPP code. The command that failed was: nmake > out.make 2>&1 The build directory was: C:\Inline-CPP-0.25\_Inline\build\_01basic_t_5cd2 To debug the problem, cd to the build directory, and inspect the output files. at t/01basic.t line 30 BEGIN failed--compilation aborted at t/01basic.t line 64. t/01basic.....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-10 Failed 10/10 tests, 0.00% okay t/02prefix.... Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\Perl\lib\ExtUtils\typemap -typemap C:\Inline-CPP-0.25\_Inline\build\_02prefix_t_ 4ede\CPP.map _02prefix_t_4ede.xs > _02prefix_t_4ede.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv _02prefix_t_4ede.xsc _02prefix_t_4ede.c cl -TP -c -IC:/Inline-CPP-0.25/t -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" _02prefix_t_4ede.c NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. A problem was encountered while attempting to compile and install your Inline CPP code. The command that failed was: nmake > out.make 2>&1 The build directory was: C:\Inline-CPP-0.25\_Inline\build\_02prefix_t_4ede To debug the problem, cd to the build directory, and inspect the output files. at t/02prefix.t line 0 INIT failed--call queue aborted. t/02prefix....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-4 Failed 4/4 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/01basic.t 2 512 10 20 200.00% 1-10 t/02prefix.t 2 512 4 8 200.00% 1-4 Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop. C:\Inline-CPP-0.25> Any help would be great! - Thanks.