Hi, recently I re-installed my system and switched to win7, so had to re-install many of the perl modules, including inline. The installation went fine, but when I ran scripts with inline, it always returned an error saying "c:\programs\perl\lib\core\win32.h(61) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory".
I am not sure whether I didn't set up some system environment variable correctly (PATH, etc.) or the inline module was not installed correctly. Please help. Thanks a million. Biological The following is the output of a simple script 2.pl: ______________________________________________________________ D:\scripts\perl>2.pl Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Programs\perl\bin\perl.exe C:\Programs\perl\lib\ExtUtils\xsubpp -typ emap C:\Programs\perl\lib\ExtUtils\typemap _2_pl_e89e.xs > _2_pl_e89e.xsc && C: \Programs\perl\bin\perl.exe -MExtUtils::Command -e mv _2_pl_e89e.xsc _2_pl_e89e. c cl -c -ID:/scripts/perl -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 -Z i -DNDEBUG -O1 -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\Programs\perl\lib\CORE" _2_pl_e89e.c_2_pl_e89e.c c:\programs\perl\lib\core\win32.h(61) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2' 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:\scripts\perl\Inline\build\_2_pl_e89e To debug the problem, cd to the build directory, and inspect the output files. at D:\scripts\perl\2.pl line 0 INIT failed--call queue aborted. ______________________________________________________________ And here is the script 2.pl: _______________________________________________________________ use Inline (C=>'DATA', DIRECTORY =>'D:/scripts/perl/Inline'); print "1\n"; print "2\n"; __DATA__ __C__ double _ttest(SV* aref1, SV* aref2){ AV* av1; AV* av2; } ________________________________________________________________