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



  • 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


  • Lifetime Qt Champion

    Hi,

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



  • 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]


Log in to reply
 

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