Entry Point Not Found Error on running c++ .exe file after compiling with mingw g++

后端 未结 2 749
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 06:45

I am using the latest MinGW to compile my c++ code with g++ compiler on Windows 10. The code compiles without errors but when I run the execution file it gives the error:

相关标签:
2条回答
  • 2020-12-20 06:51

    The problem was with libstd++6.dll. It was solved by using the argument -static-libstdc++ in g++. MinGW was taking libstd++6.dll from Windows instead of the one in MinGW.

    0 讨论(0)
  • 2020-12-20 07:05

    It's most likely that you have an old compiler version that does not yet natively support C++11. Try compiling with -std=c++11. Otherwise update compiler.

    0 讨论(0)
提交回复
热议问题