【问题标题】:C++ the system cannot find the file specified error [duplicate]C++系统找不到文件指定错误[重复]
【发布时间】:2020-07-06 02:42:28
【问题描述】:

当我启动我的代码时,我得到“系统找不到指定的文件”错误。怎么了?

#include <iostream>
using namespace std;
int main() {
    cout << "Hello world";
    return 0;
 }

https://i.stack.imgur.com/QoY3I.png

【问题讨论】:

  • 编译器构建exe程序失败。在屏幕底部,您可以找到失败的确切原因。它缺少 WindowsSDKDir 并且可能根本缺少 Windows SDK。另外我不明白为什么 main.cpp 在资源文件夹中而不是在源文件夹中。您应该先安装 Windows SDK 或配置 VisualStudio 以正确访问它。顺便说一句,这不是 C++ 问题。

标签: c++


【解决方案1】:

您的可执行文件未构建。如果您查看控制台输出,您会遇到错误:不能包含 crtdbg.h。这是您必须修复的错误。

这可能会有所帮助:How do I get crtdbg.h file?

【讨论】:

  • 你能说我需要做什么吗?我找不到解决方案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-07
  • 2016-09-19
  • 2012-03-02
  • 2011-09-17
  • 1970-01-01
相关资源
最近更新 更多