V
vfunc
I have three files tbenbase.h, tbenbase.cpp and tbtst.cpp
The class enmutable is forward declared in tbenbase.h and defined in
tbenbase.cpp.
This is within namespace tb in all files. The header is referenced at
the top
of tbtst.cpp outside of the namespace.
the reference in tbtst.cpp is
class eninv : public enmutable
the class declaration starts
class enmutable : public enbase
and the forward declaration is
class enmutable;
the error is
tbtst.cpp:9: error: invalid use of undefined type `struct
tb::enmutable'
struct?
My compiler is gcc, I do not mention .h to the compiler / linker in the
make file.
How do I correct this?
The class enmutable is forward declared in tbenbase.h and defined in
tbenbase.cpp.
This is within namespace tb in all files. The header is referenced at
the top
of tbtst.cpp outside of the namespace.
the reference in tbtst.cpp is
class eninv : public enmutable
the class declaration starts
class enmutable : public enbase
and the forward declaration is
class enmutable;
the error is
tbtst.cpp:9: error: invalid use of undefined type `struct
tb::enmutable'
struct?
My compiler is gcc, I do not mention .h to the compiler / linker in the
make file.
How do I correct this?