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: C99 complex in C++ mode is not supported

Tool/software: TI C/C++ Compiler

Hi,

I'm trying to compile my source code(s) that has a mix of C/C++ files and uses float complex types for processing. I'm trying to compile for c66x platform and I encounter issues with support for complex float types in the c6000 compliler. I set the flags to build for c++03 and c99 standard but get the error "C99 complex in C++ mode is not supported".  I came across a  macro that disables this explicitly in the 'complex.h' header file. Infact, the first few lines states :

#ifdef __cplusplus
#  error "C99 complex in C++ mode is not supported."
#endif

Is there a workaround to this problem ?

Thanks.

-Abhi