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.

usage of gcc extension

Other Parts Discussed in Thread: CCSTUDIO

I have a guestion.

I enabled the gcc extension option for variadic macros.

I have found following error.

 [Debug.cpp] "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.12\bin\cl6x" -g -fg -fr"D:/Work/mesh/src/DSP/LMAC/debug" -fs"D:/Work/mesh/src/DSP/LMAC/debug" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/LMAC" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/UMAC_CONTROL" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/CS" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/HOST" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/PCL" -i"D:/Work/mesh/src/DSP/LMAC/../../../[MAC]/UMAC_DATA" -i"D:/Work/mesh/src/DSP/LMAC/../../../[INCLUDE]" -i"C:/CCStudio_v3.3/ndk_2_0_0/packages/ti/ndk/inc" -i"C:/CCStudio_v3.3/ndk_2_0_0/packages/ti/ndk/example/tools" -i"../../../tools" -i"./" -d"PLATFORM_DSP" -d"CHIP_C6455" -d"_INCLUDE_NIMU_CODE" -d"_INCLUDE_IPv6_CODE" -d"_NDK_EXTERN_CONFIG" -mv6400+ --gcc -cc -@"../../src/DSP/LMAC/Debug.lkf" "Debug.cpp"
>> ERROR: GCC extensions are not available for C++

But I don't want to change source files's extension as ".c"

Do you have any solution?

 Regards,

 

 

  • If it is really just a matter of the file's extension you can force the file to be compiled as a C program by using the --cpp_file option to do that.

    However, if the program really is a C++ program, newer releases of the compiler do support the GCC extensions in C++ programs.  For C6000, any version from 7.2.0 or beyond will do that.