Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2022 17.5+ build error about stdatomic.h #170

Open
sniper00 opened this issue Apr 17, 2024 · 0 comments
Open

VS2022 17.5+ build error about stdatomic.h #170

sniper00 opened this issue Apr 17, 2024 · 0 comments

Comments

@sniper00
Copy link
Owner

原因:

VS2022的bug, 存在多个版本VCToolsversion时, 不会默认使用最新版
具体可见这个目录存在多个版本:
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC

解决方案:

删除这个目录下 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build 这两个文件
Microsoft.VCToolsVersion.v143.default.props
Microsoft.VCToolsVersion.v143.default.txt

参考资料:
actions/runner-images#9670
https://developercommunity.visualstudio.com/t/Latest-Visual-Studio-version-1791-ca/10598722#T-N10605771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant