Unresolved External Symbol with Qt private classes



  • Hello, I wish to test some code against some private qt classes.
    Do I need to do something else apart from adding QT += network-private in the .pro?
    Seems like I receive an unresolved external symbol error when I try to compile


  • Moderators

    @Jiloc said in Unresolved External Symbol with Qt private classes:

    Seems like I receive an unresolved external symbol error when I try to compile

    for what symbol(s)?
    Did you already try a clean build? (rerun qmake before building again)



  • @raven-worx
    I am including

    #include <QtNetwork/private/qnetworkreplyhttpimpl_p.h>
    

    and when I compile I get this error:

    ssonetworkmanager.obj:-1: error: LNK2019: unresolved external symbol "public: __cdecl QNetworkReplyHttpImpl::QNetworkReplyHttpImpl(class QNetworkAccessManager * const,class QNetworkRequest const &,enum QNetworkAccessManager::Operation &,class QIODevice *)" (??0QNetworkReplyHttpImpl@@QEAA@QEAVQNetworkAccessManager@@AEBVQNetworkRequest@@AEAW4Operation@1@PEAVQIODevice@@@Z) referenced in function "public: class QNetworkReply * __cdecl SsoNetworkManager::get(class QNetworkRequest const &)" (?get@SsoNetworkManager@@QEAAPEAVQNetworkReply@@AEBVQNetworkRequest@@@Z)
    

    Yep I tried a clean build


  • Lifetime Qt Champion

    Hi,

    From a quick look at the sources, that class is not exported so inaccessible.


Log in to reply
 

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