老大,Qt4.1.2中关于网络应用中的那些例子,我是直接将它的代码拿过来用的
我在编译后总是产生这样的错误,不知道什么原因,期待你的帮忙
先谢谢了
client.cpp:25:21: QtNetwork: No such file or directory
In file included from client.cpp:27:
client.h:28:22: QTcpSocket: No such file or directory
In file included from client.cpp:27:
client.h:45: error: `QAbstractSocket' has not been declared
client.h:45: error: variable or field `displayError' declared void
client.h:45: error: expected `;' before '(' token
client.cpp: In constructor `Client::Client(QWidget*)':
client.cpp:51: error: invalid use of undefined type `struct QTcpSocket'
client.h:33: error: forward declaration of `struct QTcpSocket'
。。。。。。。。。。。。。。。。。。。。。。。。。[ 此贴被weilong122在2006-04-23 15:12重新编辑 ]