最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Visual Studio 2022 with C++ : how to reference the debug version of third-party DLL - Stack Overflow

programmeradmin0浏览0评论

I compile my C++ project with Visual Studio 2022, in Debug mode.

In the project configuration I link with Qt5Core.lib, no other choice. In PATH environment variable, I add the path to the 'bin' folder of Qt5, who contains the both files : QtCore.dll and Qt5Cored.dll. The Qt5Core.pdb and Qt5Cored.pdb files are also here.

The issue : when application compiled in debug mode starts, it always looking for Qt5Core.dll, never Qt5Cored.dll.

Thank you for your help.

I want my application runs with the debug version of QtCore.dll DLL ==> I mean Qt5Cored.dll.

I compile my C++ project with Visual Studio 2022, in Debug mode.

In the project configuration I link with Qt5Core.lib, no other choice. In PATH environment variable, I add the path to the 'bin' folder of Qt5, who contains the both files : QtCore.dll and Qt5Cored.dll. The Qt5Core.pdb and Qt5Cored.pdb files are also here.

The issue : when application compiled in debug mode starts, it always looking for Qt5Core.dll, never Qt5Cored.dll.

Thank you for your help.

I want my application runs with the debug version of QtCore.dll DLL ==> I mean Qt5Cored.dll.

Share Improve this question asked Feb 6 at 13:39 stoffy28stoffy28 15 bronze badges 2
  • I should link my debug project with Qt5Cored.lib, but unfortunately, the Qt5 libraries comming with Qgis 3.34 LTS does not contain the debug versions of .lib files. – stoffy28 Commented Feb 6 at 21:04
  • I have completely reinstalled Qgis, the debug versions of Qt5xxxxxx.LIB are not here. All Qt5xxxxxd.DLL are here. So I don't know how to debug ... – stoffy28 Commented Feb 7 at 8:11
Add a comment  | 

1 Answer 1

Reset to default 0

The Qt5 libraries shipped with Qgis are only release. Debug Qt libraries are not included. It is proven, so no need to investigate more.

The solution should be : download Qt sources, compile them in debug then in release modes. Then, download Qgis sources and compile them too.

By this way, I would have all I need to compile MY application either fully in debug, or fully in release.

发布评论

评论列表(0)

  1. 暂无评论