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. Qt5 LNK2019 unresolved symbol external QUnhandledException::~QUnhandledException from QtConcurrent::run

Qt5 LNK2019 unresolved symbol external QUnhandledException::~QUnhandledException from QtConcurrent::run

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 215 Views
  • 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.
  • N Offline
    N Offline
    NiVa99
    wrote on last edited by NiVa99
    #1

    Hi,

    Porting Qt 4 to Qt5 some appplications, one of them does not happen to link because of QtConcurrent and QUnhandledException unresolved symbol.

    Error	LNK2019	unresolved symbol external "__declspec(dllimport) public: virtual __cdecl QUnhandledException::~QUnhandledException(void)" (__imp_??1QUnhandledException@@UEAA@XZ) référencé dans la fonction "int `public: virtual void __cdecl QtConcurrent::RunFunctionTask<class QList<class QByteArray> >::run(void)'::`1'::dtor$0" (?dtor$0@?0??run@?$RunFunctionTask@V?$QList@VQByteArray@@@@@QtConcurrent@@UEAAXXZ@4HA)	foobar.obj	1	
    

    This is an extract of code from qt-5/qtconcurrentrun

    #include <QObject>
    #include <QtCore/QtCore>
    #include <QtCore/QFuture> 
    #include <QtCore/QUnhandledException>
    
    #include <QtConcurrent/QtConcurrent> 
    #include <QtConcurrent/QtConcurrentRun> 
    #include <QtConcurrent/QtConcurrentMap>
    
    
    QByteArray bytearray = "hello world";
    QFuture<QList<QByteArray> > future = QtConcurrent::run(bytearray, &QByteArray::split, ',');
    QList<QByteArray> result = future.result();
    
    

    Here are my .lib file dependencies in msvc 2019 configuration arch x64 and their location C:\Qt\5.15.2\lib.

    Qt5Concurrent.lib
    Qt5Core.lib
    Qt5Network.lib
    Qt5Sql.lib
    Qt5Widgets.lib
    Qt5Xml.lib
    
    1 Reply Last reply
    0

    • Login

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