Hi,
It is just compiler issue from CT-ARM which have some problem to compile the code properly when dealing with inheritance class with custom struct. The way I show you is just a temporary fix for your problem, i.e. remove the inheritance and go back to old fashion way, putting the code to your main library.