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.

How to use task in C++?

Hi,

I'm using TCI6486 under CCS V3.3, and I try to migrate my c code to cpp code. My code use some task,and  when I compile it return these errors:

undefined                  first referenced                                                      
  symbol                        in file                                                           
 ---------                  ----------------                                                      
 _QueueDecrementTTLPrd      F:\\Adaptive\\DSP1000_cPlusPlus\\Bin\\Core0_Release\\Main_core0cfg.obj
 _debugTask                 F:\\Adaptive\\DSP1000_cPlusPlus\\Bin\\Core0_Release\\Main_core0cfg.obj
 _filterTask                F:\\Adaptive\\DSP1000_cPlusPlus\\Bin\\Core0_Release\\Main_core0cfg.obj
 _queueRemoveExpiredTTLTask F:\\Adaptive\\DSP1000_cPlusPlus\\Bin\\Core0_Release\\Main_core0cfg.obj
 _snmpTask                  F:\\Adaptive\\DSP1000_cPlusPlus\\Bin\\Core0_Release\\Main_core0cfg.obj

I managed to solve this problem by adding this configuration:

#if defined __cplusplus
} // End "C"
#endif // __cplusplus

//My code

#if defined __cplusplus
} // End "C"
#endif // __cplusplus

What I think is that we add this in header file, so how to solve this problem in  case of task and Debug loop (DSP/BIOS config).

Can you give me an idea on how to solve this echo?

Thanks.