in reply to Re: Win32::SerialPort - compilation failed in require
in thread Win32::SerialPort - compilation failed in require

I apologize I'm using Eclipse Perl Integration. I have Win32::API as well. I'm using Active Perl. If I run the command "perl sample.pl" I get this:
"Can't locate loadable object for module Device::SerialPort in @INC (@ +INC contain s: C:/Program Files/ActivePerl/ActivePerl/perl/site/lib C:/Program Fil +es/ActiveP erl/ActivePerl/perl/lib .) at com.pl line 10 Compilation failed in require at com.pl line 10. BEGIN failed--compilation aborted at com.pl line 10."

Replies are listed 'Best First'.
Re^3: Win32::SerialPort - compilation failed in require
by syphilis (Archbishop) on May 02, 2007 at 16:09 UTC
    That message is telling you that, although Device/SerialPort.pm can be found, the "loadable object" (namely auto/Device/SerialPort/SerialPort.dll), which would be a critical piece of the Device::SerialPort package, cannot be found. You shouldn't need to use Device::SerialPort on Win32 - and if you do need it, then I think you're in trouble. Afaik it has never been built on Win32.

    Best thing to do is to remove all references to it from your code, and concentrate on getting things to work using just Win32::SerialPort.

    Cheers,
    Rob
        I tried both of these and am still receiving the same problems.