I have a.h as shown below
class A
{
public:
void doSomething()=0;
};
Then i have b.h as shown below
#include "a.h"
class b: public A
{
public:
void doSomething();
};
I am just trying to check for syntax errors by trying to compile headers such as
g++ -c a.h b.h
and i get below errror
a.h:4: error: initializer specified for non-virtual method 'void A::doSomething()'
What does this error means?