Closed MaxwellGengYF closed 1 month ago
Bot detected the issue body's language is not English, translate it automatically.
Title: PCH error reported after upgrading VS
2.9.3
Windows
After updating VS, an error occurred: error: Microsoft Visual C/C++ Version differs in PCH file vs. current file After executing xmake c -a, an error is still reported. You need to manually delete the .xmake .build folder.
After detecting the MSVC version update, recompile PCH
set_pcxxheader("pch.h")
error: Microsoft Visual C/C++ Version differs in PCH file vs. current file
再试试,xmake update -s github:xmake-io/xmake#pch
Bot detected the issue body's language is not English, translate it automatically.
Try again,
xmake update -s github:xmake-io/xmake#pch
Xmake 版本
2.9.3
操作系统版本和架构
Windows
描述问题
更新VS后,出现报错: error: Microsoft Visual C/C++ Version differs in PCH file vs. current file 执行 xmake c -a 后仍然报错,需要手动删除 .xmake .build 文件夹
期待的结果
检测到MSVC版本更新后,重新编译PCH
工程配置
set_pcxxheader("pch.h")
附加信息和错误日志
error: Microsoft Visual C/C++ Version differs in PCH file vs. current file