VS编译工程时出现“计算机类型X86与目标计算机类型X64冲突”问题,提供解决方案:
英文error提示“module machine type 'x86' conflicts with target machine type 'X64'”
1、在项目属性链接(Linker)的命令行(Command Line)中其他选项(Additional options)中填写
x86对应:%(AdditionalOptions) /machine:x86
x64对应:%(AdditionalOptions) /machine:x64
2、直接清空 其他选项(Additional options)内容
若为静态库时,相关修改点位置为Librarian中Command Line中