I'm getting the following undefined reference errors:
foo_test.o(.gnu.linkonce.t._ZN7CFooD1Ev+0x18): In function
`CFoo::~CFoo()':
: undefined reference to `vtable for CFoo'
foo_test.o(.gnu.linkonce.t._ZN7CFooC1Ev+0x19): In function
`CFoo::CFoo()':
: undefined reference to `CFoo::rmap'
foo_test.o(.gnu.linkonce.t._ZN7CFooC1Ev+0x30): In function
`CFoo::CFoo()':
: undefined reference to `vtable for CFoo'
The implementation of the concerned functions is given below. I'm
pretty sure it is reading the file. What exactly could be going wrong?
------------------------------------------------------------------------------------------------------------------
class CFoo : public CIFoo
{
public:
CFoo() : CIFoo( PID_FOO, rmap) {};
CFoo( const CFoo& c ) : CIFoo( PID_Foo, rmap )
{
}
~CFoo()
{
}
private:
char* rmap;
};