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.

Compiler/LAUNCHXL-CC2640R2: How can i use a c++ class in c files?

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: MSP430FR6989, MSP430FR5994

Tool/software: TI C/C++ Compiler

Hi,

i added come C++ class into the simple_central project and i want to use the class object in c file.

I compile it fine but once i include the c++ header to the project i get a lot of errors.

I did wraped the class with:

#ifdef __cplusplus

#endif

And include the class header with no error but i cannot instanciate an object.

How can i use an object in the c files?