I have written an application previously in ansi C that is using FreeRTOS and works 100%.
Now, I have converted the code to C++ and ready to try using the C++ wrappers and add in the calls to FreeRTOS. At this point it’s tasks and queues. I’m using IAR EWARM 7.5.
Just including the TaskCPP file has caused a silicon slip in the compiler. The 2 errors I am getting are :
Error[Pe265]: member “Task::handle” (declared at line 169) is inaccessible C:\Users\grr\Documents\IAR Embedded Workbench\FreeRTOSV8.2.0\FreeRTOS\Source\include\TaskCPP.h 223
Error[Pe245]: a nonstatic member reference must be relative to a specific object C:\Users\grr\Documents\IAR Embedded Workbench\FreeRTOSV8.2.0\FreeRTOS\Source\include\TaskCPP.h 223
As you can see, both are at the same line. What is causing this error, and better yet, are there any basic examples to be found on using these wrappers?