question
Recently, I opened VSCode (I configured the C++ environment) and I don’t know why if it is only a simple output of hello world! These are very simple and can be output normally, but once it involves different classes or something, it cannot be output, as follows I
just At first I thought it was a problem with the C++ environment. I uninstalled and reinstalled it several times, but it didn’t work. Then I accidentally found that the following error was reported.
reason
It seems that the meaning of what the boss said is that there can also be a libstdc+±6.dll in the WINDOWS\System32 directory, which conflicts with the explanation of
the boss in mingw
solve
Copy libstdc+±6.dll under F:\mingw64\bin to the current path and run it again