【问题标题】:I cannot open source file clang64.exe and a crtdbg.h Error?我无法打开源文件 clang64.exe 和 crtdbg.h 错误?
【发布时间】:2022-01-01 22:17:07
【问题描述】:

构建开始...

1>------ Build started: Project: ConsoleApplication6, Configuration: Debug x64 ------
1>clang64.exe
1>c1xx : fatal error C1083: Cannot open source file: 'C:\msys64\clang64.exe': No such file or directory
1>ConsoleApplication6.cpp
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include\yvals.h(12,10): fatal error C1083: Cannot open include file: 'crtdbg.h': No such file or directory
1>Generating Code...`enter code here`
1>Done building project "ConsoleApplication6.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

有没有办法不调用msys64?我已经设置了所有的 Windows SDK 文件,所以我不知道我做错了什么。

【问题讨论】:

  • 这看起来像是一个试图将 clang 编译器构建为源文件的 MSVC 项目。对于 MSBuild,您使用 PlatformToolset clang-cl 而不是 v143

标签: c++ visual-studio clang visual-studio-2022


【解决方案1】:

当我忘记关闭可执行文件时,我经常会收到此错误。检查它是否打开。如果没有,请查看任务管理器。当我遇到这个问题时,它解决了它

【讨论】:

    猜你喜欢
    • 2021-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-25
    • 2021-09-15
    相关资源
    最近更新 更多