[Solved]Unexpected external symbol



  • I made project on linux with qt 4.7 and qxmpp 0.7.6, all works good
    I installed Qt 5.2 on windows, compiled qxmpp and installed it, it has finished successfully and is in
    C:\Qt\Qt5.2.0\5.2.0\msvc2010\include\qxmpp dir, seems all went good
    I copied project from linux, changed includepath for qxmpp so it suits windows now and run qmake, no problem
    but when I wanted to run it i got 122 errors all look like this:
    __mainwindow.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QXmppCallManager::~QXmppCallManager(void)" (_imp??1QXmppCallManager@@UAE@XZ) referenced in function "public: virtual thiscall MainWindow::~MainWindow(void)" (??1MainWindow@@UAE@XZ)

    all errors are for qxmpp classes

    here is my .pro file

    @INCLUDEPATH += "C:\Qt\Qt5.2.0\5.2.0\msvc2010\include\qxmpp"

    QT += core gui network xml multimedia widgets

    TARGET = IM-client
    TEMPLATE = app

    SOURCES += main.cpp
    #more sources etc@

    any idea what can be this caused by?


  • Moderators

    qxmpp is not "header-only" library so you need to add the compiled library to your project via
    @LIBS += -Lwhatever\the\path\is
    LIBS += -lwhatever_the_lib_name_is@

    Btw it seems a bad idea to install 3rd party libraries into the Qt directory.



  • thanks this was the problem I must've removed this part somehow when I wanted to edit .pro file


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.