CCS编译出现以下四条报错:
Description Resource Path Location Type
#249 function "ConfigCpuTimerm" has already been defined DSP2833x_CpuTimers.c /Example24_DSP2833x_SCI_echoback/DSP2833x_Libraries line 88 C/C++ Problem
Description Resource Path Location Type
#249 function "InitCpuTimersm" has already been defined DSP2833x_CpuTimers.c /Example24_DSP2833x_SCI_echoback/DSP2833x_Libraries line 35 C/C++ Problem
Description Resource Path Location Type
gmake: *** [DSP2833x_Libraries/DSP2833x_CpuTimers.obj] Error 1 Example24_DSP2833x_SCI_echoback C/C++ Problem
Description Resource Path Location Type
gmake: Target 'all' not remade because of errors. Example24_DSP2833x_SCI_echoback C/C++ Problem
帮帮忙
意思就是整两个函数已经定义过了,你重复定义了
#249 function "ConfigCpuTimerm" has already been defined DSP2833x_CpuTimers.c /Example24_DSP2833x_SCI_echoback/DSP2833x_Libraries line 88 C/C++ Problem
Description Resource Path Location Type
#249 function "InitCpuTimersm" has already been defined DSP2833x_CpuTimers.c /Example24_DSP2833x_SCI_echoback/DSP2833x_Libraries line 35 C/C++ Problem
这错误信息已经说了,ConfigCpuTimerm和InitCpuTimersm函数的定义已经存在了,你检查一下其它地方还定义了同名函数了吗
全局搜索ConfigCpuTimerm和InitCpuTimersm这两个函数,在前面增加static修饰。
static int InitCpuTimersm();
static int ConfigCpuTimerm();
前面已经定义过了这个变量