Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLinkedList undefined external symbol
Forum Updated to NodeBB v4.3 + New Features

QLinkedList undefined external symbol

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matone1
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      al-sabr
      wrote on last edited by al-sabr
      #2

      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

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved