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. QFtp problem

QFtp problem

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.9k 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.
  • A Offline
    A Offline
    ahura_24
    wrote on last edited by
    #1

    hi every body.

    @
    #include <QtNetwork/QFtp>

    int main(int argc, char *argv[])
    {
    QFtp f;

    return 0;
    

    }
    @

    error link :

    main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall QFtp::~QFtp(void)" (_imp??1QFtp@@UAE@XZ) referenced in function _main

    main.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QFtp::QFtp(class QObject *)" (_imp??0QFtp@@QAE@PAVQObject@@@Z) referenced in function _main

    debug\emptyProject.exe:-1: error: LNK1120: 2 unresolved externals

    1 Reply Last reply
    0
    • T Offline
      T Offline
      task_struct
      wrote on last edited by
      #2

      Hi,

      did you add
      @
      QT += network
      @

      in your .pro file? QtNetwork is separate module(dll) in Qt libraries.

      "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

      • Linu...
      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ZapB
        wrote on last edited by
        #3

        Also be aware that QFtp is deprecated. It is better to use QnetworkAccessManager in new code if you can. Although at present it is not yet a complete replacement for QFtp.

        Nokia Certified Qt Specialist
        Interested in hearing about Qt related work

        1 Reply Last reply
        0
        • A Offline
          A Offline
          ahura_24
          wrote on last edited by
          #4

          tnx a lot for your help.

          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