Results 1 to 9 of 9

Thread: How to display My Current System IP Address...???

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    27
    Qt products
    Qt4
    Platforms
    Windows

    Question How to display My Current System IP Address...???

    Hi.. All,

    I am developing an application in which i need to communicate with and transmit data using TCP protocol...
    For that i need IP Address...
    So my question is how to get my Ip address...
    i tried using this....
    QHostAddress ( quint32 ip4Addr ) for getting... Ip address of my system...

    but it returned some linker error...

    These are the linker errors... (which i couldnt debug them...)


    rfswitchmainwindow.obj : error LNK2019: unresolved external symbol "__declspec (dllimport) public: __thiscall QHostAddress::QHostAddress(class QHostAddress const &) " (__imp_??0QHostAddress@@QAE@ABV0@@Z) referenced in function "private: void __thiscall QList<class QHostAddress>::node_copy(struct QList<class QHostAddress>::Node *,struct QList<class QHostAddress>::Node *,struct QList<class QHostAddress>::Node*) " (?node_copy@?$QList@VQHostAddress@@@@AAEXPAUNode@1 @00@Z)

    rfswitchmainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QHostAddress::~QHostAddress(void)" (__imp_??1QHostAddress@@QAE@XZ) referenced in function "public: void * __thiscall QHostAddress::`scalar deleting destructor'(unsigned int)" (??_GQHostAddress@@QAEPAXI@Z)

    fswitchmainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QHostInfo::~QHostInfo(void)" (__imp_??1QHostInfo@@QAE@XZ) referenced in function "private: void __thiscall RFSwitchMainWindow:n_ControlPannel_Button_clicked(void)" (?on_ControlPannel_Button_clicked@RFSwitchMainWind ow@@AAEXXZ)

    rfswitchmainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QList<class QHostAddress> __thiscall QHostInfo::addresses(void)const " (__imp_?addresses@QHostInfo@@QBE?AV?$QList@VQHostA ddress@@@@XZ) referenced in function "private: void __thiscall RFSwitchMainWindow:n_ControlPannel_Button_clicked(void)" (?on_ControlPannel_Button_clicked@RFSwitchMainWind ow@@AAEXXZ)

    rfswitchmainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall

    QHostInfo::QHostInfo(int)" (__imp_??0QHostInfo@@QAE@H@Z) referenced in function "private: void __thiscall RFSwitchMainWindow:n_ControlPannel_Button_clicked(void)" (?on_ControlPannel_Button_clicked@RFSwitchMainWind ow@@AAEXXZ)

    so can any one tell me where i am going wrong...?


    Thanks in advance...
    Last edited by jpn; 30th June 2008 at 14:10. Reason: missing [quote] tags

Similar Threads

  1. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  2. Replies: 22
    Last Post: 7th December 2007, 09:01
  3. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  4. Replies: 15
    Last Post: 21st April 2007, 17:46
  5. Qt 4.1.1 linker warnings
    By Matt Smith in forum Installation and Deployment
    Replies: 0
    Last Post: 26th February 2006, 22:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.