I am trying to install Lab::Visa using strawberry perl and I get the following error. What am I doing wrong? I am a novice to perl and Visa module. Any help is greatly appreciated.
I tried following the instructctions from the link here, however the path to visa32.lib seems to be correct in my Makfile.PL.
http://search.cpan.org/dist/Lab-VISA/lib/Lab/VISA/Installation.pod
C:\Strawberry\cpan\build\Lab-VISA-3.02-T3pLOd>dmake
Skip blib\lib\Lab\VISA.pm (unchanged)
Skip blib\lib\Lab\VISA\Installation.pod (unchanged)
Skip blib\lib\Lab\VISA.pod (unchanged)
Running Mkbootstrap for Lab::VISA ()
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "VISA.bs"
gcc -c "-IC:\Program Files (x86)\IVI Foundation\VISA\WinNT\include" -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -f
wrapv -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"3.02\" -DXS_VERSION=\"3.02\" "-IC:\STRAWB~1\perl\lib\CORE" visa_wrap.c
dlltool --def VISA.def --output-exp dll.exp
g++ -o blib\arch\auto\Lab\VISA\VISA.xs.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib" visa_wrap.o "C:\STRAWB~1\perl\lib\CORE\libper
l522.a" "C:\Program Files (x86)\IVI Foundation\VISA\WinNT\lib\msc\visa32.lib" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmoldname.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libkernel32
.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinspool.a" "C:\STRAWB~1\c\x86_64-
w64-mingw32\lib\libcomdlg32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libadvapi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libole
32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuuid.a" "C:\STRAWB~1\c\x86_
64-w64-mingw32\lib\libws2_32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libmpr.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libversion.a
" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbc32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbccp32.a" "C:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomctl32.a" dll.exp
visa_wrap.o:visa_wrap.c.text+0xb7d): undefined reference to `viClose'
visa_wrap.o:visa_wrap.c.text+0xcbd): undefined reference to `viClear'
visa_wrap.o:visa_wrap.c.text+0xde6): undefined reference to `viOpenDefaultRM'
visa_wrap.o:visa_wrap.c.text+0xf98): undefined reference to `viSetAttribute'
visa_wrap.o:visa_wrap.c.text+0x11c4): undefined reference to `viGetAttribute'
visa_wrap.o:visa_wrap.c.text+0x1430): undefined reference to `viGpibControlREN'
visa_wrap.o:visa_wrap.c.text+0x17b2): undefined reference to `viReadSTB'
visa_wrap.o:visa_wrap.c.text+0x197a): undefined reference to `viFindNext'
visa_wrap.o:visa_wrap.c.text+0x1b9f): undefined reference to `viWrite'
visa_wrap.o:visa_wrap.c.text+0x1e7b): undefined reference to `viOpen'
visa_wrap.o:visa_wrap.c.text+0x216c): undefined reference to `viRead'
visa_wrap.o:visa_wrap.c.text+0x23f4): undefined reference to `viFindRsrc'
collect2.exe: error: ld returned 1 exit status
dmake: Error code 129, while making 'blib\arch\auto\Lab\VISA\VISA.xs.dll'