ok I have SimpleChat.pro like this :
######################################################################
# Automatically generated by qmake (2.01a) ?r. lut 11 18:36:37 2009
######################################################################
QT += network
TEMPLATE = app
TARGET =
DEPENDPATH += . SimpleChatClient SimpleChatServer
INCLUDEPATH += . SimpleChatClient SimpleChatServer
# Input
HEADERS += SimpleChatClient/simplechatclient.h \
SimpleChatServer/simplechatserver.h
SOURCES += SimpleChatClient/main.cpp \
SimpleChatClient/simplechatclient.cpp \
SimpleChatServer/main.cpp \
SimpleChatServer/simplechatserver.cpp
######################################################################
# Automatically generated by qmake (2.01a) ?r. lut 11 18:36:37 2009
######################################################################
QT += network
TEMPLATE = app
TARGET =
DEPENDPATH += . SimpleChatClient SimpleChatServer
INCLUDEPATH += . SimpleChatClient SimpleChatServer
# Input
HEADERS += SimpleChatClient/simplechatclient.h \
SimpleChatServer/simplechatserver.h
SOURCES += SimpleChatClient/main.cpp \
SimpleChatClient/simplechatclient.cpp \
SimpleChatServer/main.cpp \
SimpleChatServer/simplechatserver.cpp
To copy to clipboard, switch view to plain text mode
and there I one problem :
main.o: In function `main':
main.cpp:(.text+0x0): multiple definition of `main'
main.o:main.cpp:(.text+0x0): first defined here
collect2: ld returned 1 exit status
main.o: In function `main':
main.cpp:(.text+0x0): multiple definition of `main'
main.o:main.cpp:(.text+0x0): first defined here
collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode
Bookmarks