T
Thomas Zangl
Hi!
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 FTPSession: public virtual Session {
public:
FTPSession(Socket* conn);
}
I get this error on compile:
g++ -c -g -Wall -O2 -I./include -o src/FTPSession.o src/FTPSession.cpp
src/FTPSession.cpp: In constructor `
FTPServer_::FTPSession::FTPSession(FTPServer_::Socket*)':
src/FTPSession.cpp:17: 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/FTPSession.o] Error 1
Any ideas?
TIA,
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 FTPSession: public virtual Session {
public:
FTPSession(Socket* conn);
}
I get this error on compile:
g++ -c -g -Wall -O2 -I./include -o src/FTPSession.o src/FTPSession.cpp
src/FTPSession.cpp: In constructor `
FTPServer_::FTPSession::FTPSession(FTPServer_::Socket*)':
src/FTPSession.cpp:17: 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/FTPSession.o] Error 1
Any ideas?
TIA,