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

后端 未结 2 786
隐瞒了意图╮
隐瞒了意图╮ 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.

提交回复
热议问题