Little help initialising CTask. #573
Unanswered
wmjenkinson
asked this question in
Q&A
Replies: 1 comment
-
|
This is not a question, which is specific to Circle. I would suggest to ask this in a C++ forum. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Guys, I have the following initialiser in CTask. I'm looking to intialise "m_task_core, m_nStackSize from within CActLED .
`class CTask /// Overload this class, define the Run() method, and call new on it to start it.
{
public:
uint16_t m_task_priority = 5;
uint16_t m_task_core = 0;
`
And I want to now initialise CTask from for example .
`class CLEDTask : public CTask
{
public:
private:
CActLED *m_pActLED;
};`
But I get the following error!
I get the following error.
ledtask.cpp:23:1: error: declaration of 'CLEDTask::CLEDTask(CActLED*)' outside of class is not definition [-fpermissive]
23 | CLEDTask::CLEDTask (CActLED *pActLED);
| ^~~~~~~~
ledtask.cpp:24:1: error: expected unqualified-id before ':' token
24 | : m_pActLED (pActLED)
| ^
make: *** [ledtask.o] Error 1
Beta Was this translation helpful? Give feedback.
All reactions