Loupius,
class Client : public QStandardItem, public QObject
{
Q_OBJECT
public:
Client(QTcpSocket *cli, Comm *par);
public slots:
void inComing();
void send(Packet pac); <- La ligne est ici...
voilà le message complet du compilo (c'est un peu de charabia pour moi ^^)
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Users/dark-san/Documents/C_C++/chatvercp
lusplus'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -
DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEE
DS_QMAIN -I"c:\Qt\4.4.3\include\QtCore" -I"c:\Qt\4.4.3\include\QtCore" -I"c:\Qt\
4.4.3\include\QtNetwork" -I"c:\Qt\4.4.3\include\QtNetwork" -I"c:\Qt\4.4.3\includ
e\QtGui" -I"c:\Qt\4.4.3\include\QtGui" -I"c:\Qt\4.4.3\include" -I"." -I"c:\Qt\4.
4.3\include\ActiveQt" -I"debug" -I"." -I"c:\Qt\4.4.3\mkspecs\win32-g++" -o debug
\Chatwid.o Chatwid.cpp
In file included from Packet.h:12,
from Chatwid.h:11,
from Comm.h:6,
from Ds2fen.h:9,
from main.h:4,
from Chatwid.cpp:1:
Client.h:23: error: `Comm' has not been declared
Client.h:23: error: ISO C++ forbids declaration of `par' with no type
Client.h:28: error: variable or field `send' declared void
Client.h:28: error: expected `;' before '(' token
Client.h:31: error: variable or field `fullPacket' declared void
Client.h:31: error: expected `;' before '(' token
Client.h:35: error: ISO C++ forbids declaration of `Comm' with no type
Client.h:35: error: expected `;' before '*' token
Client.h:36: error: expected `;' before '(' token
mingw32-make[1]: *** [debug/Chatwid.o] Error 1
mingw32-make[1]: Leaving directory `C:/Users/dark-san/Documents/C_C++/chatvercplusplus'
mingw32-make: *** [debug] Error 2
et j'ai pas oublié de metre la ligne QT += network
P.S: Chose bizard, lorsque je ne met pas la ligne network dans le .pro, il arrete de m'engeuler pour comm, mais il refuse toujour les slots...