[fpc-pascal] *** SPAM *** Re: USB Human Interface Devices

Jean SUZINEAU Jean.Suzineau at wanadoo.fr
Sat Aug 17 21:38:38 CEST 2019


Le 17/08/2019 à 19:39, James Richters a écrit :
> I think maybe it is the calling convention...  First I tried to change libusboop.pas (libusb.pas is the old unit, libusboop.pas is the one it uses) to stdcall,  I was unable to compile it, I get an error
> libusboop.pas(1456,28) Error: Incompatible types: got "<address of procedure(Plibusb_transfer);StdCall>" expected "<procedure variable type of procedure(Plibusb_transfer);CDecl>"
> libusboop.pas(1726) Fatal: There were 1 errors compiling module, stopping

Yes , this is because extdecl is defined a first time in libusb.pas line 
45 and a second time in libusboop.pas line 21.
If you change it in libusboop, you need to change it accordingly in 
libusb.pas.



More information about the fpc-pascal mailing list