Le 30/07/2019 à 19:52, James Richters a écrit :
libusb.pas(1350) Warning: Library c.dll not found, Linking may fail ! ■

As stated in https://github.com/hansiglaser/pas-libusb/issues/4

it's very likely you'll have to change

{$LINKLIB c}

into

  {$linklib msvcrt}
(and you'll need to have a msvcrt.dll in your path, there are different versions of msvcrt, like msvcrt20.dll, I don't know exactly which one you will need)

Under linux, when the compiler finds {$LINKLIB c}, it will look for something like "libc.so" (the runtime dll) and "libc.a" (file with infos for compilation and link).

Le 30/07/2019 à 19:52, James Richters a écrit :
libusb.pas(1350) Warning: Library usb-1.0 not found, Linking may fail !

Did you install the windows version of libusb ?

It seems to be at https://libusb.info/

I think you'll have to change 

{$LINKLIB usb-1.0}
into something like
{$LINKLIB libusb-1.0}
and libusb-1.0.dll and libusb-1.0.lib should be accessible on your path.

Some unix libraries are available through distributions such MinGW (http://www.mingw.org/)
It seems libusb is available under windows (libusb-1.0.22.7z) with four different compilations:
-MinGW 32 bits (I imagine it uses the libc from mingw, the glibc I suppose)
-MinGW 64 bits
-MS32 I think it's compiled with Microsoft Visual Studio/ Microsoft Visual C++ and use the MSVCRT dll
-MS64 the same in 64 bits architecture.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to