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.

Mixing C and C++



Hi

We are using CCS5 with CGT 7.2.1 to develop code for a SoC (6618) device.  We are taking existing C code, which will provide the main() function, and will add a set of functions coded in C++.  I am comfortable with how to call C++ from C, but want to check one detail.

The C++ FAQ Lite at http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html states:

"You must use your C++ compiler when compiling main()(e.g., for static initialization)"

Now, in our scenario, where main() is in a .c file, will this condition be met using CGT?

Best regards

David