Hi all,
I have stumbled upon a mystifying problem with the compiler (c6000, CGT ver 7.4.2) where it seems to compile a C++ file as C.
This is the file, named test.cpp:
class test
{
int a;
public:
test() { a=1; }
};
Here is the output of make:
bash-4.1$ make
make PROFILE=debug dspApp.x
make[1]: Entering directory `/vobs/rip/syslink_examples/proxies/dsp'
#
# Making (C++) bin/debug/obj/test.oe674 ...
/vobs/rtools/ti_dsp/ti_cgt_c6000/bin/cl6x -c --gcc -qq -D_DEBUG_=1 --symdebug:dwarf -I. -mv6740 --abi=eabi -I"/vobs/rtools/ti_dsp/syslink_2_21_01_05/packages" -I"/vobs/rtools/ti_dsp/bios_6_35_01_29/packages" -I"/vobs/rtools/ti_dsp/ipc_1_25_02_12/packages" -I"/vobs/rtools/ti_dsp/xdctools_3_24_07_73/packages" -I"/home/cpotenza/wcs/platforms" -I"/vobs/rtools/ti_dsp/xdctools_3_24_07_73/packages" -I"/vobs/rip/syslink_examples/proxies/dsp/configuro/.." -I/vobs/rtools/ti_dsp/ti_cgt_c6000/include -Dxdc_target_types__="ti/targets/elf/std.h" -Dxdc_target_name__=C674 -Dxdc_cfg__header__="/vobs/rip/syslink_examples/proxies/dsp/configuro/package/cfg/Dsp_pe674.h" --output_file=bin/debug/obj/test.oe674 -fc test.cpp
"test.cpp", line 1: error: identifier "class" is undefined
"test.cpp", line 2: error: expected a ";"
"test.cpp", line 7: warning: parsing restarts here after previous syntax error
2 errors detected in the compilation of "test.cpp".
>> Compilation failure
make[1]: *** [bin/debug/obj/test.oe674] Error 1
make[1]: Leaving directory `/vobs/rip/syslink_examples/proxies/dsp'
make: *** [all] Error 2
To me the error seems to indicate that the compiler is try to compile as C, but I cannot see any option that might be responsible for such a problem.
Has anyone a suggestion to solve this strange problem?
thanks