C++ “Hello World.exe” crashes - “Hello World.exe has stopped working.” when used in command prompt

后端 未结 2 492
轻奢々
轻奢々 2020-12-20 02:31

I\'ve started learning C++ and wrote a \"Hello World\"-Program. When i try to run it in command prompt, it crashes and gives me a windows message saying \"Hello World.exe ha

2条回答
  •  既然无缘
    2020-12-20 03:24

    I had the exact same problem. And what i found is that there might be different versions of the same DLL on my Path. So i simply moved my C:\MinGW\bin path from the end of the Path list to the front and now it's working. But maybe this solution breaks some other software that relies on the other version of the DLL file.

提交回复
热议问题