Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QLinkedList undefined external symbol
matone1 last edited by
Using Visual Studio 19 Professional 16.6.5 and Qt 5.14.2 and am getting a
Error LNK2001 unresolved external symbol "__declspec(dllimport) public: __cdecl QLinkedListData::QLinkedListData(void)" (_imp??0QLinkedListData@@QEAA@XZ) when attempting to link the application. This code has been unchanged for a while but have recently updated Visual Studio to the latest and updated Qt from 5.13.2 to 5.14.2 based on QTBUG-81727. If I comment out calls to append and erase it links. Suggestions of what to try next?
al-sabr last edited by al-sabr
Hi I encountered the same problem and found out that it issue comes from the Platform Toolset in your Project properties.
When you go to the property pages
- Configuration Properties section -> General -> Platform Toolset -> Change it for Visual Studio 2017 (v141)
Recompile the project and you should get your dll. Don't forget to create a ticket for this bug with Microsoft Visual Studio repository.
The solution is explained here : https://github.com/commontk/CTK#build-instructions