Determining the CPU architecture of a static library (LIB) on Windows

前端 未结 1 1226
旧时难觅i
旧时难觅i 2020-12-24 11:30

I just built libpng on a 64-bit Windows machine using VS2008. It produces a libpng.lib file inside the \\projects\\visualc71\\Win32_Lib_Release directory (Confi

相关标签:
1条回答
  • 2020-12-24 11:37

    Use dumpbin /headers

    The machine type is almost the first line you'll get.

    It will be 14c for x86 and 8664 for x64

    n:>dumpbin lib642.lib /headers

    Microsoft (R) COFF/PE Dumper Version
    10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

    Dump of file lib642.lib

    File Type: LIBRARY

    FILE HEADER VALUES 8664 machine (x64

    Or

    n:>dumpbin Lib32.lib /headers

    Microsoft (R) COFF/PE Dumper Version
    10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved.

    Dump of file Lib32.lib

    File Type: LIBRARY

    FILE HEADER VALUES 14C machine (x86)

    0 讨论(0)
提交回复
热议问题