Search code examples
c++windowsvisual-c++32bit-64bit

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


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


Solution

  • You can use dumpbin utility with /headers option

    It returns whether the library was built for 32 or 64 bit architecture.

    Check DUMPBIN Reference for details.

    Example usage:

    c:\>dumpbin libXYZ.lib /headers