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

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
  • Comment on Re^3: Win32::SerialPort - compilation failed in require

Replies are listed 'Best First'.
Re^4: Win32::SerialPort - compilation failed in require
by TGI (Parson) on May 02, 2007 at 21:07 UTC
      I tried both of these and am still receiving the same problems.

        Are you sure?

        Try running this from a dos command prompt:

        perl -MWin32::SerialPort -e "print 'OK'"

        If this code prints 'OK' then Win32::SerialPort is installed on your system. Double check your sample script.

        If you get an error message, you may need to reinstall the serial port module. Post the error message.


        TGI says moo