Fatal error: iostream: No such file or directory #include <iostream>

Fatal error: iostream: No such file or directory #include <iostream>

我在学习C++的时候遇到了一个问题,在编译的时候遇到了错误

详情如下:

您似乎没有在 mingw32 安装程序中选择 C++ 可选 compiler/dev 包。默认情况下不安装 C++ 开发包。 运行 再次安装程序并选择安装所需的开发包。

You can also add one or more of the following optional compilers or tools. For each you choose to install, you need all three of the bin, the dev and the dll component packages:

  • gcc-c++ (bin and dev and dll) for C++

您似乎没有在 MinGW 中安装 C++ 支持。如果您使用手动安装路径,请下载 gcc-c++ dev、dll 和 bin 文件。如果您使用的是自动 GUI 安装程序(推荐给 C++ 新手),请确保检查 C++ 包: