When mingw-building libusbx with dlltool (create_import_lib), a mingw-build of
code using libusbx (usbredirhost) fails with errors similar to the following:

  .libs/libusbredirhost_la-usbredirhost.o: In function 
`usbredirhost_send_device_connect':
  ../src/usbredirhost/usbredirhost.c:356: undefined reference to 
`libusb_get_device_speed@4'

Removing the "LIBRARY" line from libusb-1.0.def seems to fix that.

Related commit: 6b33cd4 (Windows: Enable MinGW and MSVC DLL interchangeability)
---
 libusb/libusb-1.0.def |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/libusb/libusb-1.0.def b/libusb/libusb-1.0.def
index 847b785..4679a22 100644
--- a/libusb/libusb-1.0.def
+++ b/libusb/libusb-1.0.def
@@ -1,4 +1,3 @@
-LIBRARY
 EXPORTS
   libusb_alloc_transfer
   libusb_alloc_transfer@4 = libusb_alloc_transfer
-- 
1.7.7.6


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to