PDA

View Full Version : No such QTcpServer file??



lengshuang
22nd May 2009, 05:05
hi 2 all
rensently I want to construct a tcp server,in the headfile:
#include<QTcpServer>
#include<QTcpSocket>
but when I compile ,the result show :No such QTcpServer or directory
No such QTcpSocket or directory



why?

aamer4yu
22nd May 2009, 05:31
Is your path set correctly ?
If using windows, check your environment variables.

lengshuang
22nd May 2009, 06:02
I use Linux ubuntu7.10

spirit
22nd May 2009, 06:29
did you add QT += network in your pro-file?