I did copy the visa32.lib and visa.h to C:\Strawberry\cpan\Lab-VISA-3.02\include and C:\Strawberry\cpan\Lab-VISA-3.02\msc and changed my Makefile.PL as follows, but that does not work either. What else I need to correct?
#!/usr/bin/perl use strict; use ExtUtils::MakeMaker; # If you have Swig installed, un-comment the next line # to re-create the wrapper code. # If you do so, also un-comment the 'clean' section below # to delete the swig-generated files when doing 'make clean'. # TODO: should just check if swig is in the path # system("swig -perl5 -module Lab::VISA visa.i"); WriteMakefile( # 'clean' => { # FILES => 'VISA.pm visa_wrap.c' # }, # Important: you have to adjust the 'LIBS' and 'INC' paths according t +o your local setup! # The correct values may depend on your exact version of LabView, VISA +, GPIB drivers, # the phase of the moon and the local neutrino density... # First two lines are for Windows, second two lines are for Linux. # TODO: find out how to figure these out automatically. (($^O =~ /MSWin32/) ? ('LIBS' => ['"-lC:\\Program Files\\IVI Foundation\\VIS +A\\WinNT\\lib\\msc\\visa32.lib"'], 'INC' => '"-IC:\\Program Files\\IVI Foundation\\VISA +\\WinNT\\Include"', ) : ('LIBS' => ['-lvisa'], 'INC' => '-I/usr/local/include/', ) ), 'NAME' => 'Lab::VISA', 'VERSION_FROM' => 'VISA.pm', 'OBJECT' => q/$(O_FILES)/, 'META_MERGE' => { resources => { homepage => 'https://www.labmeasurement.de/', bugtracker => 'https://www.labmeasurement.de/bugs/', MailingList => 'lab-measurement-users@mailman.uni-reg +ensburg.de', }, }, 'ABSTRACT_FROM' => 'VISA.pod', 'AUTHOR' => ['Daniel Schröer <schroeer@cpan.org>', 'An +dreas K. Hüttel <mail@akhuettel.de>'], );

In reply to Re^4: Unable to install Lab::VISA module by savi
in thread Unable to install Lab::VISA module by savi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.