Access Component Functions in another class #1016
-
Hello, I want basic inheritance functionality. I have a Class for the state Machine and I want to call the gpios, uart write etc functions of the ComponentImpl in the state machine class(GpsSM). I have GpsComponentImpl.hpp, GpsComponentImpl.cpp and GpsSM.h in the same folder. I am adding this in my GpsSM.h class GpsSM : public StateMachine, public App:GpsComponentImpl {}; but I get an error In file included from /home/sheershak/Desktop/F-Prime-Debug/App/Gps/GpsComponentImpl.hpp:17:0, I read some other links regarding the issue but couldn't find solution. I also see there is GpsComponentBase. I tried inheriting that too but same error. Also I am creating an object of GpsSM in GpsComponentImpl.hpp with private member. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That usually means that the compiler can't find the base class types. Double-check your spelling including any namespaces. |
Beta Was this translation helpful? Give feedback.
-
I think you need "::" for your namespace.
Needs to be
|
Beta Was this translation helpful? Give feedback.
I think you need "::" for your namespace.
Needs to be