I have a C project and I am trying to integrate some files that were written in C++. I have header files written in C++ along with library files. Can I build a project with code written in C and C++? I am using CCS 4.2.3.4 and CGT 7.0.3.
Thanks
EW
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.
I have a C project and I am trying to integrate some files that were written in C++. I have header files written in C++ along with library files. Can I build a project with code written in C and C++? I am using CCS 4.2.3.4 and CGT 7.0.3.
Thanks
EW
Certainly. You will need to follow the usual conventions for declaring functions that will be called from C files. See http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html