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.

CCS/C66: error when calling dsplib.h function from c++ code

Part Number: DRA746


Tool/software: Code Composer Studio

Hi 

I have DSPF_sp_fir_gen() in my cpp source code (g++ compiler) and have included header files as recommended:

extern "C" {

#include "C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h"

#include "C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/dsplib.h"
}

but still see below error:

"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 223: error: badly formed pragma
"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 224: error: expected a ")"
"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 268: error: badly formed pragma
"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 269: error: expected a ")"
"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 323: error: badly formed pragma
"C:/Proj/carRepo/partners/ti/dsplib_c66x_3_4_0_0/packages/ti/dsplib/src/DSP_urand32/c66/DSP_urand32.h", line 324: error: expected a ")"

Thanks,

Farhad