no save
Assistance
Achat
News

Forum | programmation
C++:Probleme Compilation, class non definie
Dark-Sannhius, le jeu. 29 janv. 2009 à 16:56:58
Hello! C'est pas trop mon genre de poser des questions, je prefer me débrouiller mais la, je vois
vraiment pas ce qui merde dans mon code, donc j'espère que vous pourez m'aider...

Voilà le code qui foire: (j'utilise la librairie Qt)

#ifndef CLIENT
#define CLIENT


#include <QtGui>
#include <QtNetwork>

#include "Ds2fen.h"
#include "Comm.h"
#include "Chatwid.h"
#include "Packet.h"
#include "Client.h"
#include <QTcpSocket>
#include <QStandardItem>
#include <QDataStream>

class Client : public QStandardItem, public QObject
{
Q_OBJECT

public:
Client(QTcpSocket *cli, Comm *par);


public slots:
void inComing();
void send(Packet pac);

signals:
void fullPacket(Packet *pac);

private:
QTcpSocket *clientSocket;
Comm *parent;
QDataStream in_out(clientSocket);
quint16 messLength;

};

#endif


et il me sort comme erreur:

Client.h:22: error: `Comm' has not been declared
Client.h:22: error: ISO C++ forbids declaration of `par' with no type
Client.h:27: error: variable or field `send' declared void
Client.h:27: error: expected `;' before '(' token
Client.h:30: error: variable or field `fullPacket' declared void
Client.h:30: error: expected `;' before '(' token
Client.h:34: error: ISO C++ forbids declaration of `Comm' with no type
Client.h:34: error: expected `;' before '*' token
Client.h:35: error: expected `;' before '(' token


Merci d'avance!Configuration: Windows Vista
Internet Explorer 7.0


kill4m
29 janv.
Suivant
REPONSES
kill4m
29 janv.
Dark-Sannhius
29 janv.
loupius
29 janv.
Dark-Sannhius
29 janv.
loupius
29 janv.
Dark-Sannhius
29 janv.
loupius
29 janv.
fiddy
30 janv.
Char Snipeur
30 janv.
Dark-Sannhius
30 janv.
Version Web
Réalisé par RedShift
no save