你好,基于AM5728和rtos,我想要在dsp上使用c++开发程序,但在编译时发现好像不能识别到class定义,请问应该如何解决这个问题呢?
以下是我的工程文件:
以下是编译现象:
root@tronlong-virtual-machine:/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1# make -j32
make PROFILE=debug PROCLIST="" server_dsp1.x
make[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1'
#
# Making bin/debug/configuro/.config ...
/home/tronlong/AM57xx/rtos-04.03.00.05/xdctools_3_50_03_33_core/xs --xdcpath="/home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages;/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages;/home/tronlong/AM57xx/rtos-04.03.00.05/xdctools_3_50_03_33_core/packages" \
xdc.tools.configuro -o bin/debug/configuro \
-t ti.targets.elf.C66 \
-c /home/tronlong/AM57xx/rtos-04.03.00.05/ti-cgt-c6000_8.3.1 \
-p ti.platforms.evmDRA7XX:dsp1 \
-b ../shared/config.bld -r debug \
Dsp1.cfg
making package.mak (because of package.bld) ...
generating interfaces for package configuro (because package/package.xdc.inc is older than package.xdc) ...
configuring Dsp1.xe66 from package/cfg/Dsp1_pe66.cfg ...
generating custom ti.sdo.utils library makefile ...
generating custom ti.sdo.ipc library makefile ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making /home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/ipc.ae66 ...
gmake[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/ipc'
cle66 /home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/utils/NameServer.c ...
remark #24038-D: --gcc is deprecated and will be removed in a subsequent
release. GCC compatibility is implemented through the --relaxed_ansi option
and is the default behavior of the compiler.
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 302: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 306: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 310: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 387: remark #2911-D: comparison between two different enum types ("enum ti_sdo_ipc_GateMP_RemoteProtect" and "enum GateMP_RemoteProtect")
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 411: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 415: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 419: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 531: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 536: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 541: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 546: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 547: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 662: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 693: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 728: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1090: remark #2911-D: comparison between two different enum types ("enum ti_sdo_ipc_GateMP_RemoteProtect" and "enum GateMP_RemoteProtect")
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1213: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1248: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1281: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1419: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1432: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1445: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1457: warning #190-D: enumerated type mixed with another type
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/GateMP.c", line 1572: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/Ipc.c", line 323: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/Ipc.c", line 502: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/ipc/remoteproc/Resource.c", line 119: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/heaps/HeapBufMP.c", line 643: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 239: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/notifyDrivers/NotifyDriverShm.c", line 327: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/ipc/gates/GateHWSpinlock.c", line 77: remark #2142-D: comparison between signed and unsigned operands
"/home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/ipc/family/vayu/VirtQueue.c", line 268: remark #2142-D: comparison between signed and unsigned operands
are66 Ipc.obj ...
gmake[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/ipc'
making /home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/sysbios/sysbios.ae66 ...
gmake[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/sysbios'
cle66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/BIOS.c ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Exception_asm.s64P ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm.s62 ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_asm_switch.s62 ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi_disp_always.s64P ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/timers/dmtimer/Timer_asm.s64P ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/rts/ti/tls_get_tp.asm ...
asme66 /home/tronlong/AM57xx/rtos-04.03.00.05/bios_6_52_00_12/packages/ti/sysbios/family/c62/TaskSupport_asm.s62 ...
are66 BIOS.obj c64p_Exception_asm.obj c64p_Hwi_asm.obj c64p_Hwi_asm_switch.obj c64p_Hwi_disp_always.obj dmtimer_Timer_asm.obj ti_tls_get_tp.obj c62_TaskSupport_asm.obj ...
gmake[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/sysbios'
making /home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/utils.ae66 ...
gmake[1]: Entering directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/utils'
cle66 /home/tronlong/AM57xx/rtos-04.03.00.05/ipc_3_47_01_00/packages/ti/sdo/utils/UTILS.c ...
are66 UTILS.obj ...
gmake[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1/bin/debug/configuro/package/cfg/Dsp1_pe66.src/utils'
Build of libraries done.
cle66 package/cfg/Dsp1_pe66.c ...
"package/cfg/Dsp1_pe66.c", line 35491: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 35747: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 36020: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 36649: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 36909: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 37185: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 37616: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 37860: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 38104: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 38365: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 38625: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 38885: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 39160: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 39421: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 39694: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 40210: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 42722: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 43581: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 43983: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 45019: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 45555: warning: statement is unreachable
"package/cfg/Dsp1_pe66.c", line 46872: warning: statement is unreachable
#
# Making bin/debug/obj/MainDsp1.oe66 ...
/home/tronlong/AM57xx/rtos-04.03.00.05/ti-cgt-c6000_8.3.1/bin/cl6x -c -qq -pdsw225 -ppd=bin/debug/obj/MainDsp1.oe66.dep -ppa -D_DEBUG_=1 --symdebug:dwarf -@bin/debug/configuro/compiler.opt -I. --output_file=bin/debug/obj/MainDsp1.oe66 -fc MainDsp1.cpp
"MainDsp1.cpp", line 54: error: identifier "class" is undefined
"MainDsp1.cpp", line 55: error: expected a ";"
"MainDsp1.cpp", line 59: warning: parsing restarts here after previous syntax error
"MainDsp1.cpp", line 61: warning: this declaration has no storage class or type specifier
"MainDsp1.cpp", line 61: error: expected a ";"
At end of source: warning: parsing restarts here after previous syntax error
3 errors detected in the compilation of "MainDsp1.cpp".
>> Compilation failure
make[1]: *** [bin/debug/obj/MainDsp1.oe66] Error 1
make[1]: Leaving directory `/home/tronlong/AM57xx/rtos_examples/ex41_forwardmsg/dsp1'
make: *** [debug] Error 2