Hi!
First - thanks for your previous replies! After fixing the c'tor
everything went fine until ... I added one more class in the hierachie.
I have a class hierachie like this:
// interface, abstract only
class ISession {
}
// implements common parts of ISession
class Session: public virtual ISession {
public:
Session(Socket* conn);
}
// implements the rest of ISession
class P2PSession: public virtual Session {
public:
P2PSession(Sock et* conn);
}
and I added one more class:
class P2PClient: public virtual P2PSession
{
public:
P2PClient(Socke t* conn);
}
I get this error on compile:
g++ -c -g -Wall -O2 -I./include -o src/P2PClient.o src/P2PClient.cpp
src/P2PClient.cpp: In constructor `
FTPServer_::P2P Client::P2PClie nt(FTPServer_:: Socket*)':
src/P2PClient.cpp:1 0: error: no matching function for call to `
FTPServer_::Ses sion::Session(c onst <anonymous>** )'
include/Session.h:10: error: candidates are:
FTPServer_::Ses sion::Session(c onst
FTPServer_::Ses sion&)
include/Session.h:12: error:
FTPServer_::Ses sion::Session(F TPServer_::Sock et*)
make: *** [src/P2PClient.o] Fehler 1
The c'tor of P2PSession:
//----------------------------------------------------------------------
P2PSession::P2P Session(Socket* conn) : Session(conn)
{
}
The c'tor of P2PClient:
//----------------------------------------------------------------------
P2PClient::P2PC lient(Socket* conn): P2PSession(conn ),
state_(CS_INIT_ NEEDED)
{
}
Any ideas?
TIA,
--
----------------------------------------------------------------
,yours Thomas Zangl - th****@tzis.net - http://www.tzis.net/ -
- Freelancer - IT Consulting & Software Development -
Use Y.A.M.C! now! Get it at http://www.borg-kindberg.ac.at/yamc/