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
4 replies
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
- += network
- QT -= gui
- TARGET = SERVER_CLIENT
- CONFIG += console
- CONFIG -= app_bundle
- TEMPLATE = app
- SOURCES += main.cpp \
- client.cpp \
- server.cpp \
- packetwriter.cpp \
- packetreader.cpp
- HEADERS += \
- 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
You must log in to post a reply. Not a member yet? Register here!



