Part Number: TMS320F280049C
Hi there,
we decided to write our project in C++ but to avoid the complicated and less efficient approach of using ISR in C++ we wanted to have the ISRs in a C file hence, mixing C++ and C files. So far everything compiled well but now where I'm adding my isr.c file it seems that C++ tries to compile everythin as c isntead of C++.
The error I get is: "identifier "class" is undefined" pointing to the line in the C++ header file which declares the Class. In the files properties the files type is "C Header File". I assume this should be "C++ Header File"?
The error only occurs if I have a *.c file in the projects src folder. If I remove my isr.c file the projects builds fine.
Any suggestions on what I could do to make CCS understand which files are C and which are C++? If I add the -fg compiler option (compile all as C++) the project can't be compiled due to the several drivers I'm using.
Thanks,
Lennart
