|
From: Pete B. <pb...@gm...> - 2010-04-14 00:31:27
|
On 2010.04.14 01:10, Michael Plante wrote: > Ok, tracing through it in a debugger, examples/lsusb.exe seems to spawn > examples/.libs/lsusb.exe . This still doesn't explain the silent failure, > but at least it explains why depends wasn't showing anything wrong. I > copied the wrong copy of lsusb.exe. The examples/.libs/lsusb.exe does, in > fact, have imports in the DLL. Weird. Now that rings a bell. For the binary archives, I'm also picking up the exes in .libs as I found the ones in the parent directory didn't work when relocated (which at the time, I thought was due to absolute path for DLL reference). > So I guess it works, but didn't we decide to statically link the examples, > or was that just msvc, and I was oblivious to the mingw decisions? Only MSVC uses static by default, the main reason being that it's my prime testing environment and I prefer static. The default for DDK/MinGW/cygwin is DLL, which is comes either from following default options (configure.ac) or what other people picked (DDK). For the binary builds, I do force static on the DDK examples, but leave DLL based for MinGW so that we can demonstrate both (the MinGW executables being the ones from .libs). Regards, /Pete |