From: Pete B. <pb...@gm...> - 2010-08-21 00:18:44
|
On 2010.08.20 15:59, Xiaofan Chen wrote: > "xusb -d" works. The simple test program initially did not work. > Again I needed to compile it again (with MinGW) so that it works again. > This is very strange. I have no ideas why this happens. > I can only suspect there is some compatibility issues with > the binary snapshots and my MinGW.org 32bit compiler. I tested recompiling the test program against the last binary snapshot, and I'm not experiencing any issue. I tried both shared, against the 32 bit DLLs from the snaphost (both of them) and static against the static multilib MinGW32 libusb-1.0.a from the snapshot, and in each case I got a successful open. Below is some sample output for the static version. $ gcc -o lsusb lsusb.c -I. -L/e/dailies/2010.08.19/MinGW32/lib/ -lusb-1.0 -lsetupapi -lole32 $ ./lsusb.exe 1d6b:0001 (bus 0, device 255) 1d6b:0001 (bus 1, device 255) 1d6b:0001 (bus 2, device 255) 1d6b:0001 (bus 3, device 255) 1d6b:0001 (bus 4, device 255) 1d6b:0002 (bus 5, device 255) 0424:a700 (bus 5, device 1) 04d8:0053 (bus 5, device 2) Found device 04d8:0053 opened successfully! 1d6b:0002 (bus 6, device 255) If you see this issue again, can you please provide more information about how you compiled your sample? Regards, /Pete |