I have found a problem when deriving a class from two base classes.class BaseA{public: BaseA() {} virtual int GetNumber() const {return 42;} };class BaseB{public: BaseB() {} virtual int32_t MathConfuscator(int32_t input) {return input * 9...
Dear KnarfB,I have compiled the code with the flags you have put and it works fine now.I did not have the flag mcpu=cortex-m0plus in my compiler flags. I had -mthumb instead. Changing that flag did the trick - so thanks a lot for posting the compiler...
Changing the code of the main function intoint main(){ DerivedC myDerive; int64_t myTick = 4078; int32_t tmp = dynamic_cast<BaseA*>(&myDerive)->GetNumber(); if(myTick == dynamic_cast<BaseB*>(&myDerive)->MathConfuscator(tmp)) return...