How to resolve the module machine type 'X86' conflicts with target machine type 'x64' Visual Studio

前端 未结 5 509
傲寒
傲寒 2021-02-02 10:36

I am compiling Openssl library that I need to use in python script. I am using Visual Studio 2015 Developer Command Prompt. My machine is Windows 7 64-bit.

When I type t

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-02 11:29

    I use corflags from VS command prompt to change machine type

    https://docs.microsoft.com/en-us/dotnet/framework/tools/corflags-exe-corflags-conversion-tool

    Change Machine Type: corflags d:\abc.exe /32BITREQ- Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.6.1055.0 Copyright (c) Microsoft Corporation. All rights reserved.

    Verify using corflags:

    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise>corflags d:\abc.exe Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 4.6.1055.0 Copyright (c) Microsoft Corporation. All rights reserved.

    Version : v4.0.30319 CLR Header: 2.5 PE : PE32 CorFlags : 0x1 ILONLY : 1 32BITREQ : 0 32BITPREF : 0 Signed : 0

提交回复
热议问题