Results 1 to 2 of 2

Thread: undefined refrence to QTcpServer::QTcpServer(QObject *)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2006
    Posts
    122
    Thanks
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default undefined refrence to QTcpServer::QTcpServer(QObject *)

    while creating a object of QTcpServer in my constructor using new operator giving me this pbm.
    It also leads to pbm in listen() saying undefined refrence to QHostAddress()...
    I have included network module.
    I successfully compiled the code of fortune server example. I tried to match both code but i donot find any difference.
    Any suggestion to sort out this issue


    quick nitin

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: undefined refrence to QTcpServer::QTcpServer(QObject *)

    Add "QT += network" to your .pro file.

  3. The following user says thank you to jacek for this useful post:

    quickNitin (19th June 2006)

Similar Threads

  1. Strange error while using Q3Canvas
    By Kapil in forum Newbie
    Replies: 13
    Last Post: 15th June 2006, 20:36
  2. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 09:52
  3. undefined reference to fftw libraries
    By kmyadam in forum General Programming
    Replies: 2
    Last Post: 9th March 2006, 02:01
  4. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11
  5. Linker Errors
    By MarkoSan in forum Qt Programming
    Replies: 5
    Last Post: 7th March 2006, 19:30

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.