Closed zoumi closed 4 years ago
If I change these lines in libusb.h:
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
#define LIBUSB_CALL WINAPI
#else
#define LIBUSB_CALL
#endif
to
#define LIBUSB_CALL
it will compile.
Did you try use vcpkg?
I had tried before.But vs2019 is required by vcpkg. I don't want to install vs2019.
hmm... on appveyor I use 2017 MSVC https://github.com/a1ien/libusb1-sys/blob/master/.appveyor.yml#L1
Thank you for your tip
These are symbols that usb.lib export, they are _stdcall:
These are error msg cargo output, the linker is looking for _cedcl: