the dll and the .a do not have the same filename. This might be an issue? Don't know if a lookup for libxxx.a is always automatic on windows

You're also comparing debug vc6 build with release mingw build.