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] QNetworkAccessManager apparently giving "error: symbol(s) not found for architecture x86_64"
QtWS25 Last Chance

[Solved] QNetworkAccessManager apparently giving "error: symbol(s) not found for architecture x86_64"

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.6k Views
  • 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.
  • L Offline
    L Offline
    Lars von Qualen
    wrote on last edited by
    #1

    Hi, I'm fairly green in the use of Qt, but so far it seems great! I'm currently working on something where i need to use the QNetworkAccessManager, but I'm getting this boring linker error, which indicates that I'm using something that's 64-bit only, which i find rather odd. I've located the problem to these two lines of code, which has interdependency, so it could be the QNetworkReply too.
    @QNetworkAccessManager manager(this);
    QNetworkReply *replyPtr = manager.get( QNetworkRequest( url_ ) );@

    If i comment out these two lines, everything works fine.

    Would be nice if anyone has seen a similar problem, and have a solution.

    Some useful information:

    • Running Mac OS X 10.7.4
    • Qt Creator 2.4.1, based on Qt 4.7.4 (64 bit)
    • Compiling for desktop Qt 4.8.1
    • Got the same error before because of some copy/paste from the web, resulting in some invalid characters, but this time i've written everything myself.
    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Do you have
      @
      QT += network
      @
      in your .pro file?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lars von Qualen
        wrote on last edited by
        #3

        Nope, did the trick! Thank you so very much! :-)

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mlong
          wrote on last edited by
          #4

          Glad it did the trick! It's a common mistake to make. :-) Be sure and edit your initial post to add [Solved] to the title. Thanks!

          Software Engineer
          My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

          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