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 run c++ code from ccs5.5 compiler C2000



Hello

I am using CCS5.5 with C2000 compiler.I created new class into project with classname .cpp file and .h files added.

in main.c file I have (simple cpp code) :

#include"Sample.h"
int main(void) {
    
Sample SampleObj;
SampleObj.SampleTest();
    return 0;
}

I get following errors.

#20 identifier "class" is undefined    Sample.h    /TestCode    line 21    C/C++ Problem
#20 identifier "SampleObj" is undefined    main.c    /TestCode    line 9    C/C++ Problem


I am wondering why I am getting these errors.Please help

CCSNewbee