Undefined reference, trying to write a TCP/IP application
-
Hello out there.
To learn some small things about TCP/IP, I'm trying to write my own small "chat".
It seems that there are no errors in my code, but the IDE still says: "undefined reference to '_imp___ZN10QTcpSocketC1EP7QObject'.
So I might have forgott to link some libraries.
Could you tell me which those are?
Regards,
Dane
-
Hi,
I think it's still not working correctly.
My .pro file looks like this:
@#-------------------------------------------------
Project created by QtCreator 2010-08-02T14:56:46
#-------------------------------------------------
QT += core
+= networkQT -= gui
TARGET = SERVER_CLIENT
CONFIG += console
CONFIG -= app_bundleTEMPLATE = app
SOURCES += main.cpp
client.cpp
server.cpp
packetwriter.cpp
packetreader.cppHEADERS +=
client.h
server.h
packetwriter.h
packetreader.h
@The errors do still exist.
Regards,
Dane
-
Try replacing lines 7 and 8 are not correct qmake syntax. Try @QT += core network@ instead.