VSCode C++ ERROR: Unable to start debugging. Unexpected GDB output from command “-exec-run“.

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
insert image description hereinsert image description here
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.
insert image description here

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
insert image description here

Guess you like

Origin blog.csdn.net/thwwu/article/details/123674521