天天看点

When compiled with corecrt.h: “Unsupported architecture“

\ucrt\corecrt_stdio_config.h(31): fatal error C1189 :#error: Unsupported architecture.

在使用vs2017编译工程时遇到这个问题,原因是

When compiled with corecrt.h: “Unsupported architecture“

标题

博主使用的是vs打开qt的pro原始文件产生的。默认生成的工程里会将这个取消所有预处理器定义选择成是,编译的时候会报此错误。