Subject: | include path wrong in Makefile.PL: 'visa.h': No such file or directory |
The include path in the file Makefile.PL contains a space at the end
(see line 28):
...
'INC' => '"-IC:\\VXIPNP\\WinNT\\include "',
...
Uncommenting the swig part in the Makefile.PL it causes the following
output (on Windows XP):
C:\temp\Lab-VISA-2.06>nmake
Microsoft (R) Program Maintenance-Dienstprogramm: Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. Alle Rechte vorbehalten.
cp lib/Lab/VISA/Tutorial.pod blib\lib\Lab\VISA\Tutorial.pod
cp VISA.pod blib\lib\Lab\VISA.pod
cp lib/Lab/VISA/Installation.pod blib\lib\Lab\VISA\Installation.pod
cp VISA.pm blib\lib\Lab\VISA.pm
cl -c "-IC:\VXIPNP\WinNT\include " -nologo -GF -W3 -MD -Zi
-DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_
DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSV
CRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"2.06\"
-DXS_VERSION=\"2.06\" "-IC:\Perl\lib\CORE" visa_wrap.c
visa_wrap.c
visa_wrap.c(1496) : fatal error C1083: Include-Datei kann nicht
geoeffnet werden: 'visa.h': No such file or directory
NMAKE : fatal error U1077: 'cl' : Rueckgabe-Code '0x2'
Stop.
Removing the space fixes the Problem:
'INC' => '"-IC:\\VXIPNP\\WinNT\\include"'