I don't understand why dumpbin is returning x64 when executing the following on the Visual Studio command line:
dumpbin libgmp.lib /HEADERS |more
This is the GMP library compiled under Cygwin 32bit version, with the following build configuration:
./configure --host=i386 ABI=32
The build system compiled and built all the files successfully for the specified host. Yet, dumpbin still reports that the .a or .lib is for 64bit architectures.
Note that the output static library is libgmp.a, but I changed its extension to .lib and linked it with my Visual Studio project with no problems.
Another important note: Linking libgmp.lib with 32bit programs is fine, and produces a PE32 file, as reported by CFF Explorer.
Is it a dumpbin interpretation error, or am I missing something improtant?