On Tue, Jun 19, 2012 at 12:05 AM, Pete Batard <p...@akeo.ie> wrote: >>> If I use the libusb-1.0.dll MinGW 32bit dll from the binary distribution >>> with the MinGW.org build xusb.exe and then xusb.exe will work fine. > > So your MinGW-w64 compiled xusb is 32 bit then. It's unlikely to work > with a 32 bit DLL otherwise. > > My first guess is that you somehow have a mixup of a 32 bit sample with > a 64 bit DLL. What happens if you disable 64 bit altogether during > compilation? The following before configure should ensure 32 bit > compilation (taken from the the MinGW binaries build script [1]): > > export CFLAGS="-O2 -m32" > export LDFLAGS="-m32" > export RCFLAGS="--target=pe-i386" > export DLLTOOLFLAGS="-m i386 -f --32" >
Just take note MinGW.org is 32bit only so your guess is not correct. -- Xiaofan ------------------------------------------------------------------------------ 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