Why are we using namespaces? I ask because they aren't very useful if you're working with only one file like you said. They become indespensible if you're building libraries or headers though. Also if you don't use them here, your issues will be easier to fix and explain.
namespace myns{
class A{
public: //declare the constructor public
A();
~A();
};
class B : public A{
public:
B();
};
}
myns::A::A(){} //constructor of class A in the namespace myns
myns::A::~A(){}
myns::B::B() : myns::A(){}
I'm not having any trouble. Note that the language is case sensitive.