问题
I encountered a problem when I was learning C++, and encountered errors when I was compiling it.
The details are as follows:
回答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