fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

这个问题很奇怪。原来是/machine:X86 /machine:X64这两个链接器选项一起使用了。所以就冲突了。接手别人的项目就是晕啊。不知道为什么在VS中linker commandline的additional option要加个“/machine:X86”硬编码。

解决方案就是去掉其中一个就行了。

references:

http://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ

原文地址:https://www.cnblogs.com/foohack/p/4185065.html