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(Socket* conn);
}
and I added one more class:
class P2PClient: public virtual P2PSession
{
public:
P2PClient(Socket* 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_::P2PClient::P2PClient(FTPServer_::Socke t*)':
src/P2PClient.cpp:10: error: no matching function for call to `
FTPServer_::Session::Session(const <anonymous>**)'
include/Session.h:10: error: candidates are:
FTPServer_::Session::Session(const
FTPServer_::Session&)
include/Session.h:12: error:
FTPServer_::Session::Session(FTPServer_::Socket*)
make: *** [src/P2PClient.o] Fehler 1
The c'tor of P2PSession:
//----------------------------------------------------------------------
P2PSession::P2PSession(Socket* conn) : Session(conn)
{
}
The c'tor of P2PClient:
//----------------------------------------------------------------------
P2PClient::P2PClient(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/