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. Unresolved External Symbol with Qt private classes
Qt 6.11 is out! See what's new in the release blog

Unresolved External Symbol with Qt private classes

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.6k Views 3 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.
  • J Offline
    J Offline
    Jiloc
    wrote on last edited by
    #1

    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

    raven-worxR 1 Reply Last reply
    0
    • J Jiloc

      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

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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)

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jiloc
        wrote on last edited by Jiloc
        #3

        @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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          2

          • Login

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