Undefined references when extending Child in repo "Base"

Simon Himmelbauer himmelba at in.tum.de
Mon Jul 6 08:13:44 CEST 2020

Hi Genodians,

I am attempting to extend the class Child (base/include/base/child.h) 
with an additional function. However, when compiling my test program, I 
receive an undefined references error, even though I added the 
implementation to src/lib/base/child.cc. My observation seems to be that 
the generated object file does not get linked into the executable but 
calling any other Child-related function works fine.

My child.h looks pretty much like this:

class Genode::Child : .... {


void test_print();


and in child.cc:

void Child::test_print() {



Is there anything I am overseeing? Thanks in advance!


More information about the users mailing list