1.安装Microsoft Visual Studio installer
下载地址:https://visualstudio.microsoft.com/zh-hans/downloads/
图1
图2
主要错误: F:\Windows Kits\10\Include\10.0.19041.0\ucrt\inttypes.h(42):error C2146: 语法错误: 缺少“)”(在标识符“_Number”的前面)
图3
错误原因
inttypes.h 出错
解决方案:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include(visul studio的安装目录)
下的 stdint.h 复制到 F:\Windows Kits\10\Include\10.0.19041.0\ucrt 下(windows kits目录)
并把F:\Windows Kits\10\Include\10.0.19041.0\ucrt下的 inttype.h(刚才报错的点)第14行的尖括号包含改成双引号包含(同文件包含)
图4