I was able to compile the following code:
#include <QTcpSocket>
#include <QApplication>
int main(int argc, char *argv[])
{
socket->connectToHost("imap.free.fr", 143);
return app.exec();
}
#include <QTcpSocket>
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTcpSocket * socket = new QTcpSocket();
socket->connectToHost("imap.free.fr", 143);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
With this pro file:
######################################################################
# Automatically generated by qmake (2.01a) Fri Feb 23 09:05:34 2007
######################################################################
QT += network
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
######################################################################
# Automatically generated by qmake (2.01a) Fri Feb 23 09:05:34 2007
######################################################################
QT += network
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
mAx
Bookmarks