This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Does TI RTOS work with classes, cpp files? Ti RTOS Task cpp c++ compiling unresolved symbol

Hi,

I have a main code on a main.c file and a couple tasks in the TI RTOS cfg file. Everything compiles and works fine.

But, when I include a class declaration and some other functions in a crypto.cpp and crypto.h files that I have written there are a few compiling problems.

1) Even though I included in main.c the crypto.h, it says class was undefined. After looking around on the forum I solved this changing my main.c file to main.cpp. Another option that solves this is keep main.c file and mark the compiler advanced option for treating c files as cpp files.

2) The problem now is that I am getting a unresolved symbol error for the tasks I am using.

CCS has an example with a cpp file called bigtime for TM4C129. This example doesn't have tasks and compiles just fine. But when I include a task on it, it shows the same unresolved symbol error I got before.

Can anyone please help me to solve this issue?

Thank you,

Paulo