libusb
libusb copied to clipboard
Can not build on windows10
github.com/deadsy/libusb
cgo-gcc-prolog: In function '_cgo_b02b680d4895_Cfunc_libusb_set_debug': cgo-gcc-prolog:1212:2: warning: 'libusb_set_debug' is deprecated: Use libusb_set_option instead [-Wdeprecated-declarations] In file included from ......\pkg\mod\github.com\deadsy\[email protected]\libusb.go:14: C:/TDM-GCC-64/include/libusb-1.0/libusb.h:1352:18: note: declared here 1352 | void LIBUSB_CALL libusb_set_debug(libusb_context *ctx, int level); | ^~~~~~~~~~~~~~~~
github.com/deadsy/libusb
......\pkg\mod\github.com\deadsy\[email protected]\libusb.go:1094:43: cannot use int32(errcode) (type int32) as type _Ctype_int in argument to _Cfunc_libusb_strerror