Have a static lib, is there a simple way to know it is for 32 bit or 64 bit?

user705414 picture user705414 · May 16, 2011 · Viewed 27k times · Source

Is there any tool that can directly test if a library is made for 32 or 64 bit?

Answer

Jet Set Willy picture Jet Set Willy · May 27, 2014

Run a visual studio command prompt to ensure your path can find dumpbin.exe

Pipe to findstr to save on the big spew about each section and optionally you can use a wildcard to analyse a folder of libs.

dumpbin /headers *.lib | findstr machine

Example of what you're looking for;

8664 machine (x64)