TI中文支持网
TI专业的中文技术问题搜集分享网站

AM5708: 5708的测试例程,修改为支持c++、c混合编程工程出错

Part Number:AM5708Other Parts Discussed in Thread:SYSBIOS

pcie_test_5708.rar

         5708的测试例程,原来为c的工程,由于需要使用到c++的特性,需要修改为支持c++、c混合编程工程,在编译时出错。

附件的为原来的c工程是可以正确编译的,但是当只把MainDsp1.c文件改名为MainDsp1.cpp后再编译时报错:

'Building file: "../pcie_test.c"'
'Invoking: C6000 Compiler'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 –include_path="E:/WorkTest/pcie_test_c66_5708_cpp" –include_path="C:/ti/pdk_am57xx_1_0_10/packages" –include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/drv/pcie/example/sample/src" –include_path="C:/ti/pdk_am57xx_1_0_10/packages/ti/drv/pcie/example/sample/am57x/src" –include_path="C:/ti/ti-cgt-c6000_8.2.2/include" –define=SOC_AM572x –define=evmAM572x –define=USE_BIOS –define=C66X –define=NSS_GEN2 –define=PCIESS1_X2 –define=SOC_AM571x -g –diag_suppress=1111 –diag_suppress=827 –diag_suppress=824 –diag_suppress=837 –diag_suppress=1037 –diag_suppress=195 –diag_suppress=77 –diag_suppress=232 –diag_warning=225 –diag_warning=994 –diag_warning=262 –diag_wrap=off –display_error_number –preproc_with_compile –preproc_dependency="pcie_test.d_raw" –cmd_file="configPkg/compiler.opt" "../pcie_test.c"
"../pcie_test.c", line 73: warning #48-D: incompatible redefinition of macro "SOC_AM571x"
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 986: warning #48-D: incompatible redefinition of macro "Hwi_Instance" (declared at line 740 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 987: warning #48-D: incompatible redefinition of macro "Hwi_Handle" (declared at line 741 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 988: warning #48-D: incompatible redefinition of macro "Hwi_Module" (declared at line 742 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 989: warning #48-D: incompatible redefinition of macro "Hwi_Object" (declared at line 743 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 990: warning #48-D: incompatible redefinition of macro "Hwi_Struct" (declared at line 744 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 991: warning #48-D: incompatible redefinition of macro "Hwi_FuncPtr" (declared at line 745 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 992: warning #48-D: incompatible redefinition of macro "Hwi_Irp" (declared at line 746 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 993: warning #48-D: incompatible redefinition of macro "Hwi_HookSet" (declared at line 747 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 994: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption" (declared at line 748 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 995: warning #48-D: incompatible redefinition of macro "Hwi_StackInfo" (declared at line 749 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 998: warning #48-D: incompatible redefinition of macro "Hwi_Instance_State" (declared at line 750 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1000: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption_NONE" (declared at line 751 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1001: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption_ALL" (declared at line 752 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1002: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption_SELF" (declared at line 753 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1003: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption_BITMASK" (declared at line 754 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1004: warning #48-D: incompatible redefinition of macro "Hwi_MaskingOption_LOWER" (declared at line 755 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1005: warning #48-D: incompatible redefinition of macro "Hwi_dispatcherAutoNestingSupport" (declared at line 756 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1006: warning #48-D: incompatible redefinition of macro "Hwi_dispatcherSwiSupport" (declared at line 757 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1007: warning #48-D: incompatible redefinition of macro "Hwi_dispatcherTaskSupport" (declared at line 758 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1008: warning #48-D: incompatible redefinition of macro "Hwi_dispatcherIrpTrackingSupport" (declared at line 759 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1022: warning #48-D: incompatible redefinition of macro "Hwi_Params" (declared at line 761 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1023: warning #48-D: incompatible redefinition of macro "Hwi_getStackInfo" (declared at line 762 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1024: warning #48-D: incompatible redefinition of macro "Hwi_getCoreStackInfo" (declared at line 763 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1025: warning #48-D: incompatible redefinition of macro "Hwi_startup" (declared at line 764 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1026: warning #48-D: incompatible redefinition of macro "Hwi_switchFromBootStack" (declared at line 765 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1027: warning #48-D: incompatible redefinition of macro "Hwi_post" (declared at line 766 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1028: warning #48-D: incompatible redefinition of macro "Hwi_getTaskSP" (declared at line 767 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1029: warning #48-D: incompatible redefinition of macro "Hwi_disableInterrupt" (declared at line 768 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1030: warning #48-D: incompatible redefinition of macro "Hwi_enableInterrupt" (declared at line 769 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1031: warning #48-D: incompatible redefinition of macro "Hwi_restoreInterrupt" (declared at line 770 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1032: warning #48-D: incompatible redefinition of macro "Hwi_clearInterrupt" (declared at line 771 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1033: warning #48-D: incompatible redefinition of macro "Hwi_getFunc" (declared at line 772 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1034: warning #48-D: incompatible redefinition of macro "Hwi_setFunc" (declared at line 773 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1035: warning #48-D: incompatible redefinition of macro "Hwi_getHookContext" (declared at line 778 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1036: warning #48-D: incompatible redefinition of macro "Hwi_setHookContext" (declared at line 779 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1037: warning #48-D: incompatible redefinition of macro "Hwi_getIrp" (declared at line 774 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1038: warning #48-D: incompatible redefinition of macro "Hwi_disable" (declared at line 775 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1039: warning #48-D: incompatible redefinition of macro "Hwi_enable" (declared at line 776 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1040: warning #48-D: incompatible redefinition of macro "Hwi_restore" (declared at line 777 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1049: warning #48-D: incompatible redefinition of macro "Hwi_Module_name" (declared at line 780 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1050: warning #48-D: incompatible redefinition of macro "Hwi_Module_id" (declared at line 781 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1051: warning #48-D: incompatible redefinition of macro "Hwi_Module_startup" (declared at line 782 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1052: warning #48-D: incompatible redefinition of macro "Hwi_Module_startupDone" (declared at line 783 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1053: warning #48-D: incompatible redefinition of macro "Hwi_Module_hasMask" (declared at line 784 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1054: warning #48-D: incompatible redefinition of macro "Hwi_Module_getMask" (declared at line 785 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1055: warning #48-D: incompatible redefinition of macro "Hwi_Module_setMask" (declared at line 786 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1056: warning #48-D: incompatible redefinition of macro "Hwi_Object_heap" (declared at line 787 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1057: warning #48-D: incompatible redefinition of macro "Hwi_Module_heap" (declared at line 788 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1058: warning #48-D: incompatible redefinition of macro "Hwi_construct" (declared at line 789 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1059: warning #48-D: incompatible redefinition of macro "Hwi_create" (declared at line 790 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1060: warning #48-D: incompatible redefinition of macro "Hwi_handle" (declared at line 791 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1061: warning #48-D: incompatible redefinition of macro "Hwi_struct" (declared at line 792 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1062: warning #48-D: incompatible redefinition of macro "Hwi_Handle_label" (declared at line 793 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1063: warning #48-D: incompatible redefinition of macro "Hwi_Handle_name" (declared at line 794 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1064: warning #48-D: incompatible redefinition of macro "Hwi_Instance_init" (declared at line 795 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1065: warning #48-D: incompatible redefinition of macro "Hwi_Object_count" (declared at line 796 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1066: warning #48-D: incompatible redefinition of macro "Hwi_Object_get" (declared at line 797 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1067: warning #48-D: incompatible redefinition of macro "Hwi_Object_first" (declared at line 798 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1068: warning #48-D: incompatible redefinition of macro "Hwi_Object_next" (declared at line 799 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1069: warning #48-D: incompatible redefinition of macro "Hwi_Object_sizeof" (declared at line 800 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1070: warning #48-D: incompatible redefinition of macro "Hwi_Params_copy" (declared at line 801 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1071: warning #48-D: incompatible redefinition of macro "Hwi_Params_init" (declared at line 802 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1072: warning #48-D: incompatible redefinition of macro "Hwi_Instance_finalize" (declared at line 803 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1073: warning #48-D: incompatible redefinition of macro "Hwi_delete" (declared at line 804 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1074: warning #48-D: incompatible redefinition of macro "Hwi_destruct" (declared at line 805 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1075: warning #48-D: incompatible redefinition of macro "Hwi_Module_upCast" (declared at line 806 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1076: warning #48-D: incompatible redefinition of macro "Hwi_Module_to_ti_sysbios_interfaces_IHwi" (declared at line 807 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1077: warning #48-D: incompatible redefinition of macro "Hwi_Handle_upCast" (declared at line 808 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1078: warning #48-D: incompatible redefinition of macro "Hwi_Handle_to_ti_sysbios_interfaces_IHwi" (declared at line 809 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1079: warning #48-D: incompatible redefinition of macro "Hwi_Handle_downCast" (declared at line 810 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1080: warning #48-D: incompatible redefinition of macro "Hwi_Handle_from_ti_sysbios_interfaces_IHwi" (declared at line 811 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h")
"../pcie_test.c", line 120: warning #48-D: incompatible redefinition of macro "PCIESS1_X2"
"../pcie_test.c", line 683: warning #69-D: integer conversion resulted in a change of sign
"../pcie_test.c", line 1042: warning #190-D: enumerated type mixed with another type
"../pcie_test.c", line 1068: warning #190-D: enumerated type mixed with another type
"../pcie_test.c", line 1117: warning #190-D: enumerated type mixed with another type
"../pcie_test.c", line 1281: warning #190-D: enumerated type mixed with another type
"../pcie_test.c", line 1361: warning #190-D: enumerated type mixed with another type
"../pcie_test.c", line 1389: warning #169-D: argument of type "const char *" is incompatible with parameter of type "xdc_IArg"
"../pcie_test.c", line 1399: warning #169-D: argument of type "const char *" is incompatible with parameter of type "xdc_IArg"
"../pcie_test.c", line 1536: warning #994-D: missing return statement at end of non-void function "pcie_init"
'Finished building: "../pcie_test.c"'
'Building target: "server_dsp1.xe66"'
'Invoking: C6000 Linker'
"C:/ti/ti-cgt-c6000_8.2.2/bin/cl6x" -mv6600 –define=SOC_AM572x –define=evmAM572x –define=USE_BIOS –define=C66X –define=NSS_GEN2 –define=PCIESS1_X2 –define=SOC_AM571x -g –diag_suppress=1111 –diag_suppress=827 –diag_suppress=824 –diag_suppress=837 –diag_suppress=1037 –diag_suppress=195 –diag_suppress=77 –diag_suppress=232 –diag_warning=225 –diag_warning=994 –diag_warning=262 –diag_wrap=off –display_error_number -z -m"pcie_test_c66_5708_cpp.map" -i"C:/ti/ti-cgt-c6000_8.2.2/lib" -i"C:/ti/ti-cgt-c6000_8.2.2/include" –reread_libs –diag_wrap=off –display_error_number –warn_sections –xml_link_info="pcie_test_c66_5708_cpp_linkInfo.xml" –rom_model -o "server_dsp1.xe66" "./Server.obj" "./main.obj" "./pcie_test.obj" "./rsc_table_vayu_dsp.obj" -l"configPkg/linker.cmd" -llibc.a<Linking>

undefined first referenced
symbol in file ——— —————-
ipc_main ./pcie_test.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "server_dsp1.xe66" not built

>> Compilation failure
makefile:143: recipe for target 'server_dsp1.xe66' failed
gmake[1]: *** [server_dsp1.xe66] Error 1
makefile:139: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

======================

请问需要怎样修改才能正确编译,里面好像报Hwi.h重复,但是原来是没错误的

Shine:

c++的语法和C不同,需要做相应的修改,C++的语法,请参考编译器手册。https://www.ti.com/lit/ug/sprui04b/sprui04b.pdf另外,可以参考下面的帖子。https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/949509/ccs-ccstudio-changing-an-example-project-to-chttps://isocpp.org/wiki/faq/mixing-c-and-cpp#overview-mixing-langs

,

Kevin Le82:

C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/c64p/Hwi.h", line 1080: warning #48-D: incompatible redefinition of macro "Hwi_Handle_from_ti_sysbios_interfaces_IHwi" (declared at line 811 of "C:/ti/bios_6_52_00_12/packages/ti/sysbios/hal/Hwi.h"

你好,怎么会报重复定义呢,我看自动生成的文件里面同时include了这两个文件也没有报错

而在《../pcie_test.c》文件也只include了以下这一个:

#include <ti/sysbios/hal/Hwi.h>

应该怎么修改才不会报重复定义

,

Shine:

建议不要直接MainDsp1.c文件改名为MainDsp1.cpp,c和C++不是完全兼容的。可以把另外要用c++实现的功能单独写个.cpp文件,再添加到现有的工程,这样也好定位问题。

,

Kevin Le82:

问题已解决,发现有多个宏定义冲突了

,

Shine:

感谢分享!

赞(0)
未经允许不得转载:TI中文支持网 » AM5708: 5708的测试例程,修改为支持c++、c混合编程工程出错
分享到: 更多 (0)

© 2024 TI中文支持网   网站地图 鲁ICP备2022002796号-1