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

将SRIO的中断程序移植到UDP的例程中时报错

你好,我在将SRIO的程序移植到TI的UDP例程时遇见了一下错误。我使用的是CCS5.4.0。

从报错可以看出是说几个名字重定义了,而且是都在一个文件里面,我查看了一下并没有多次定义他们。我怀疑是头文件重复包含,但是对应的头文件均有#ifndef #def #endif 的语句。因此不太清楚怎么回事。还有最后的三个错,说是intStatus sourceId未定义,但是我并未找到在工程中出现过这两个单词的地方呀。

Description Resource Path Location Type
#102 "Qmss_AccQueueMode_MULTI_QUEUE" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 205 C/C++ Problem
#102 "Qmss_AccQueueMode_SINGLE_QUEUE" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 203 C/C++ Problem
#102 "Qmss_AccCmdCfg" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 239 C/C++ Problem
#102 "Qmss_AccQueueMode" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 206 C/C++ Problem
#102 "Cppi_DescType" has already been declared in the current scope KeyStone_Packet_Descriptor.h /Network_wuayng_5_1/inc line 10 C/C++ Problem
#102 "Qmss_AccCmd_DISABLE_CHANNEL" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 146 C/C++ Problem
#102 "Qmss_PdspId" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 141 C/C++ Problem
#102 "Qmss_PdspId_PDSP2" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 140 C/C++ Problem
#102 "Qmss_PdspId_PDSP1" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 138 C/C++ Problem
#102 "Qmss_Location" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 115 C/C++ Problem
#102 "Qmss_Location_HEAD" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 114 C/C++ Problem
#102 "Qmss_Location_TAIL" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 112 C/C++ Problem
#20 identifier "intStatus" is undefined hello.c /Network_wuayng_5_1/src line 1749, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccPacingMode_FIRST_NEW_PACKET" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 162 C/C++ Problem
#18 expected a ")" hello.c /Network_wuayng_5_1/src line 1794, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccPacingMode_LAST_NEW_PACKET" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 164 C/C++ Problem
#18 expected a ")" hello.c /Network_wuayng_5_1/src line 1745, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccPacingMode_NONE" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 158 C/C++ Problem
#142 unnamed prototyped parameters not allowed when body is present hello.c /Network_wuayng_5_1/src line 1743, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccPacingMode_LAST_INTERRUPT" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 160 C/C++ Problem
#102 "Qmss_AccCmd_CONFIG_RECLAIM_QUEUE" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 152 C/C++ Problem
#102 "Qmss_AccCmdType" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 153 C/C++ Problem
#142 unnamed prototyped parameters not allowed when body is present hello.c /Network_wuayng_5_1/src line 1792, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccCmd_ENABLE_CHANNEL" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 148 C/C++ Problem
#20 identifier "intStatus" is undefined hello.c /Network_wuayng_5_1/src line 1798, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccCmd_CONFIG_TIMER_CONSTANT" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 150 C/C++ Problem
#102 "Qmss_AccCountMode_ENTRY_COUNT" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 197 C/C++ Problem
#102 "Cppi_DescType_MONOLITHIC" has already been declared in the current scope KeyStone_Packet_Descriptor.h /Network_wuayng_5_1/inc line 9 C/C++ Problem
#18 expected a ")" hello.c /Network_wuayng_5_1/src line 1613, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccCountMode" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 198 C/C++ Problem
#102 "Cppi_DescType_HOST" has already been declared in the current scope KeyStone_Packet_Descriptor.h /Network_wuayng_5_1/inc line 7 C/C++ Problem
#102 "Qmss_AccEntrySize" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 185 C/C++ Problem
#102 "Qmss_AccCountMode_NULL_TERMINATE" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 193 C/C++ Problem
#142 unnamed prototyped parameters not allowed when body is present hello.c /Network_wuayng_5_1/src line 1655, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccEntrySize_REG_CD" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 177 C/C++ Problem
#20 identifier "sourceId" is undefined hello.c /Network_wuayng_5_1/src line 1661, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccEntrySize_REG_ABCD" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 184 C/C++ Problem
#142 unnamed prototyped parameters not allowed when body is present hello.c /Network_wuayng_5_1/src line 1611, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccPacingMode" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 165 C/C++ Problem
#18 expected a ")" hello.c /Network_wuayng_5_1/src line 1657, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#102 "Qmss_AccEntrySize_REG_D" has already been declared in the current scope KeyStone_Multicore_Navigator_drv.h /Network_wuayng_5_1/inc line 172 C/C++ Problem

#20 identifier "intStatus" is undefined hello.c /Network_wuayng_5_1/src line 1749, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#20 identifier "intStatus" is undefined hello.c /Network_wuayng_5_1/src line 1798, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem
#20 identifier "sourceId" is undefined hello.c /Network_wuayng_5_1/src line 1661, external location: C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl\csl_bootcfgaux.h C/C++ Problem

user4645493:

回复 Shine:

search查不到在别处有定义过,如果注释掉就报未定义的错

Shine:

回复 user4645493:

请升级一下CCS试试。

user4645493:

回复 Shine:

你好,已经定位到错误了,谢谢

Shine:

回复 user4645493:

方便分享一下吗?谢谢!

赞(0)
未经允许不得转载:TI中文支持网 » 将SRIO的中断程序移植到UDP的例程中时报错
分享到: 更多 (0)