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

前端 未结 5 516
傲寒
傲寒 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条回答
  •  执念已碎
    2021-02-02 11:27

    This error means that tmp32dll\uplink.obj is a 32-bit binary whereas the linker expected it to be 64-bit as it's targeting 64-bit.

    Looks like you need to re-compile it as 64-bit, or just perform a rebuild-all (or delete all *.obj or even the whole binary output directory)

    This can happen if the build process is interrupted, then you change the target platform, and then you repeat the build process in an incremental manner. 32-bits don't mix with 64-bits, so it's either completely one way or the other.

提交回复
热议问题