Search code examples
c++qtdllruntime-errormingw

Procedure Entry Point could not be located: Qt MinGw CPP Desktop App crashes when run


In my Qt Desktop app, I have included the <filesystem> in one of my .cpp files. When I compiled it with the MinGw 8.2 version there were errors everywhere. I tried downloading MinGw through MSyS2 and now the application compiles successfully. However, when I try to run it, it crashes, and shows me this error:

enter image description here


Solution

  • Your application is loaded with a dynamic library which is not same version with the dynamic library that you build your application against。
    You can find out the dll which your application was built against and put it into the directory where your application is