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. [Solved]Unexpected external symbol
Forum Updated to NodeBB v4.3 + New Features

[Solved]Unexpected external symbol

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k Views 1 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.
  • S Offline
    S Offline
    SetBetterPass
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SetBetterPass
        wrote on last edited by
        #3

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

        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