Friends are not inherited. Usually if you are a friend class and you want your derived classes to have access to the friending class' private and protected members, then you will need to add the appropriate functions to access them in yourself (the friend class). Example:
class AnotherClass;
class SomeClass {
private:
int m_int;
public:
SomeClass(int value = 0) : m_int(value) {}
friend class AnotherClass;
};
class AnotherClass {
public:
AnotherClass() {}
int getSomeInt(const SomeClass& sc) const { return sc.m_int; }
void setSomeInt(SomeClass& sc, int value) { sc.m_int = value; }
};