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

最后都变了- 提交于 2020-06-28 14:28:09

问题


I encountered a problem when I was learning C++, and encountered errors when I was compiling it.

The details are as follows: enter image description here

enter image description here


回答1:


You seem to have not installed C++ support in MinGW. If you are using the manual installation route, download the gcc-c++ dev, dll, and bin files. If you are using the automated GUI installer (recommended for newcomer to C++), make sure to check the C++ package:




回答2:


It seems you have not chosen C++ optional compiler/dev package in mingw32 installer. C++ dev package is not installed by default. Run the installer again and choose there required dev package for install.

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++


来源:https://stackoverflow.com/questions/50504352/fatal-error-iostream-no-such-file-or-directory-include-iostream

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!