Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt 5.10.1 MinGW ... how to link a dll



  • I have a project that complies while linking to lib quazip.a. But the project crashes in the Qt IDE when trying to run it. In VS 2017 I built the dll quazip.dll because the deployed project needs it. But the dll doesn't load with the error "Procedure entry point not found". Is there a way to link the dll in my project so an entry point can be found?


  • Lifetime Qt Champion

    Hi,

    Are you mixing debug and release build/dll ?

    By the way, you can't mix and match C++ dlls built with Visual Studio and MinGW.


  • Moderators

    @te777 said in Qt 5.10.1 MinGW ... how to link a dll:

    But the dll doesn't load with the error "Procedure entry point not found". Is there a way to link the dll in my project so an entry point can be found?

    The error, "Procedure entry point not found", often occurs when a DLL is built by an incompatible compiler.

    Like @SGaist said, a C++ DLL made by MSVC cannot be used in a MinGW project. You must recompile the DLL with MinGW.


Log in to reply