I always get the below error message :
error: undefined reference to 'vtable for a'
when I try to do a *ker = (a *)create_a_dll();
how to fix this problem ??
here are my definitions.
class base {...};
class a : public base {...};
extern "C"
{
base *create_a_dll()
{
return new a();
}
}
class b : public base {...};
extern "C"
{
base *create_b_dll()
{
return new b();
}
}
any information would be appreciated !!!!
thanks