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/AM6548: The GNU compiler problem with C++ source code.

Part Number: AM6548

Tool/software: TI C/C++ Compiler

Hi all,

My customer uses CCS to build AM65x example code with GNU v7.2.1(Linaro aarch64) compiler, he is able to build the example code without problem, but will get compiler errors if he modify the source code extension name from C(.c) to C++(.cpp).

The compiler shows errors : “command line option '-Wno-pointer-to-int-cast' is valid for C/ObjC but not for C++ [-Werror]”, seems that it is a compiler problem and doesn’t support -Wno-int-to-pointer-cast and -Wno-pointer-to-int-cast settings for C++ source code.

Please advise how to solve this problem, thanks.

Regards,

Luke