Results 1 to 5 of 5

Thread: QSSlError not linked?

  1. #1
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default QSSlError not linked?

    Hello,

    I got the following errors. Help needed for the reason.


    2>CommunitiesSettingsPage.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::~QSslError(void)" (__imp_??1QSslError@@QAE@XZ) referenced in function "public: void * __thiscall QSslError::`scalar deleting destructor'(unsigned int)" (??_GQSslError@@QAEPAXI@Z)
    2>moc_CommunitiesSettingsPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::~QSslError(void)" (__imp_??1QSslError@@QAE@XZ)
    2>sipccommon.lib(Http.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::~QSslError(void)" (__imp_??1QSslError@@QAE@XZ)
    2>CommunitiesSettingsPage.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::QSslError(class QSslError const &)" (__imp_??0QSslError@@QAE@ABV0@@Z) referenced in function "private: void __thiscall QList<class QSslError>::node_copy(struct QList<class QSslError>::Node *,struct QList<class QSslError>::Node *,struct QList<class QSslError>::Node *)" (?node_copy@?$QList@VQSslError@@@@AAEXPAUNode@1@00 @Z)
    2>moc_CommunitiesSettingsPage.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::QSslError(class QSslError const &)" (__imp_??0QSslError@@QAE@ABV0@@Z)
    2>sipccommon.lib(Http.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall QSslError::QSslError(class QSslError const &)" (__imp_??0QSslError@@QAE@ABV0@@Z)
    2>CommunitiesSettingsPage.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QSslError::errorString(void)const " (__imp_?errorString@QSslError@@QBE?AVQString@@XZ) referenced in function "protected: void __thiscall CustomNetworkAccessManager:nSslErrors(class QNetworkReply *,class QList<class QSslError>)" (?onSslErrors@CustomNetworkAccessManager@@IAEXPAVQ NetworkReply@@V?$QList@VQSslError@@@@@Z)
    2>sipccommon.lib(Http.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QSslError::errorString(void)const " (__imp_?errorString@QSslError@@QBE?AVQString@@XZ)
    2>sipccommon.lib(Http.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall QHttp::ignoreSslErrors(void)" (__imp_?ignoreSslErrors@QHttp@@QAEXXZ) referenced in function "protected: void __thiscall Http:nSslErrors(class QList<class QSslError> const &)" (?onSslErrors@Http@@IAEXABV?$QList@VQSslError@@@@@ Z)
    2>bin\\sipcttngn.exe : fatal error LNK1120: 4 unresolved externals

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSSlError not linked?

    At a guess you have a set of Qt libraries that was built without SSL support (assuming you have specified network in the QT variable).

  3. #3
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QSSlError not linked?

    thanks for your reply,

    you mean "configure + nmake" don't you?

    and one more thing, should I use openssl or openssl-linked?
    Last edited by zgulser; 16th April 2012 at 06:29.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSSlError not linked?

    If you are building your program with "QT += network" in the pro file AND you are you getting the errors you describe then you likely have a set of Qt libraries that was built without SSL support. To fix that would require building Qt with the OpenSSL support, which would entail having OpenSSL built and available before you configure Qt.

  5. #5
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QSSlError not linked?

    I've openssl entailed. That's why, I assume, pass the compiler but not the linker.

    and one more thing, should I use openssl or openssl-linked?

    If I use -openssl command, I need to put my regarding dll's near my .exe since iwe are talking about dynamic linking here?
    Last edited by zgulser; 16th April 2012 at 08:20.

Similar Threads

  1. Replies: 8
    Last Post: 28th January 2014, 08:09
  2. QTreeView linked to QSqlTableModel
    By certqt in forum Qt Programming
    Replies: 3
    Last Post: 27th October 2010, 20:28
  3. not the architecture being linked
    By skizzik in forum Qt Programming
    Replies: 8
    Last Post: 14th October 2010, 09:46
  4. How can we use dynamically linked lib in QT?
    By learning_qt in forum Qt Programming
    Replies: 3
    Last Post: 16th December 2008, 13:04
  5. Linked List
    By merry in forum Qt Programming
    Replies: 10
    Last Post: 14th March 2007, 07:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.