From: Xiaofan C. <xia...@gm...> - 2010-08-21 00:44:25
|
On Sat, Aug 21, 2010 at 8:37 AM, Xiaofan Chen <xia...@gm...> wrote: > I believe I found the problem. I was using an older version of the > libusb-1.0.a file. For example, if I was using the version of > June 14, I have the following results, even though I have > the latest libusb-1.0.dll (pbd299) in the same directory. > > Rebuild the program with the latest libusb-1.0.a (MinGW32) > and it works. > > gcc -o lsusb-with-open lsusb-with-open.c -lusb-1.0 -lsetupapi -lole32 > Ok, it seems to me if I use libusb-1.0.dll.a, then even the old version of the import library will work. Interestingly, if I have both libusb-1.0.dll.a and libusb-1.0.a, the above command will use the correct import library (libusb-1.0.dll.a) and then it works. If there is only libusb-1.0.a, the above will produce an exe which does not work. In that case, it seems to be static linked to the old library. And of course it would not work. Sorry for the false alarming. As for this whole thread, it seems WInUSB can not be a real generic filter after all. But I think your patch to enable the support of filter may still make sense to be kept. -- Xiaofan |