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.

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

Reply via email to