Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved]Link Error while compiling program through Qt Creater 2.6.2
Forum Updated to NodeBB v4.3 + New Features

[Solved]Link Error while compiling program through Qt Creater 2.6.2

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.8k Views 1 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.
  • M Offline
    M Offline
    mahi_0615
    wrote on last edited by
    #1

    Hi All
    I have installed Qt 5.0.1 and Qwt 6.1 on my windows 7 based PC. I am compiling my program through Qt Creater 2.6.2. While compiling I am getting link errors related to socket functions like shutdown,recv and socket etc. Can any body please me what is the library file for it and how to include it to Qt Creator.

    Regards
    Mahendra

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

      Hi,

      Could you show what errors you get ? Without them it is difficult to help you.

      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
      0
      • M Offline
        M Offline
        mahi_0615
        wrote on last edited by
        #3

        Hi,

        Thank you SGaist for your reply. Here are the errors that i am getting...
        

        mainwindow.obj:-1: error: LNK2019: unresolved external symbol __imp__shutdown@8 referenced in function "public: virtual __thiscall MainWindow::~MainWindow(void)" (??1MainWindow@@UAE@XZ)
        plot.obj:-1: error: LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: __thiscall Plot::Plot(class QWidget *)" (??0Plot@@QAE@PAVQWidget@@@Z)
        plot.obj:-1: error: LNK2019: unresolved external symbol __imp__bind@12 referenced in function "public: __thiscall Plot::Plot(class QWidget *)" (??0Plot@@QAE@PAVQWidget@@@Z)
        plot.obj:-1: error: LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: __thiscall Plot::Plot(class QWidget *)" (??0Plot@@QAE@PAVQWidget@@@Z)
        plot.obj:-1: error: LNK2019: unresolved external symbol __imp__htonl@4 referenced in function "public: __thiscall Plot::Plot(class QWidget *)" (??0Plot@@QAE@PAVQWidget@@@Z)
        plot.obj:-1: error: LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: __thiscall Plot::Plot(class QWidget *)" (??0Plot@@QAE@PAVQWidget@@@Z)
        moc_plot.obj:-1: error: LNK2001: unresolved external symbol "public: static struct QMetaObject const QwtPlot::staticMetaObject" (?staticMetaObject@QwtPlot@@2UQMetaObject@@B)
        debug\navigation.exe:-1: error: LNK1120: 7 unresolved externals
        Regards
        Mahendra
        T

        [quote author="SGaist" date="1363641436"]Hi,

        Could you show what errors you get ? Without them it is difficult to help you.

        [/quote]

        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