I have been trying to get the Device::USB module to load on my Windows XP system and can't get it to load.

I am using the standard "perl -MCPAN -e shell" command to execute this. I keep getting the following:

Starting Build Glue 3 Stage Finished Build Glue 3 Stage Starting Build Compile Stage Starting "perl Makefile.PL" Stage Set up gcc environment - 3.4.4 (cygming special) (gdc 0.12, using dmd +0.125) Note (probably harmless): No library found for -lmsvcrt Note (probably harmless): No library found for -lkernel32 ... ... ... Note (probably harmless): No library found for -lmsvcrt Writing Makefile for Device::USB Finished "perl Makefile.PL" Stage Starting "make" Stage Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -typemap C:\ +Perl\lib\ExtUtils\typemap USB.xs > USB.xsc && C:\Perl\bin\perl.exe - +MExtUtils::Command -e mv USB.xsc USB.c gcc -c -IC:/Perl/cpan/build/Device-USB-0.34-IhhGzb -I"C:\Down +loads\libusb-win32-bin-1.2.0.0\include" -DNDEBUG -DWIN32 -D_CONSOLE +-DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -D PRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_ +PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -O2 + -DVERSION=\"0.34\" -DXS_VERSION=\"0.34\" "-IC:\ Perl\lib\CORE" USB.c gcc: no input files NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x1' Stop. A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: nmake The build directory was: C:\Perl\cpan\build\Device-USB-0.34-IhhGzb\_Inline\build\Device\USB To debug the problem, cd to the build directory, and inspect the outpu +t files. at C:\Perl\cpan\build\Device-USB-0.34-IhhGzb\blib\lib/Device/USB.pm l +ine 20 Compilation failed in require. BEGIN failed--compilation aborted. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop. GWADEJ/Device-USB-0.34.tar.gz nmake -- NOT OK Failed during this command: GWADEJ/Device-USB-0.34.tar.gz : make NO
cpan>

In reply to Windows USB device by hdjoe

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.