Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE
您好:
添加CLA例程到项目中,遇到如下问题:
在sin.cla文件中#include "CLAShared.h"
CLAShared.h无论怎么修改,编译都会报错
请帮忙看下怎么解决
谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好:
添加CLA例程到项目中,遇到如下问题:
在sin.cla文件中#include "CLAShared.h"
CLAShared.h无论怎么修改,编译都会报错
请帮忙看下怎么解决
谢谢
是编译器升级还是整个CCS升级,我们程序是之前版本的能兼容吗
重新装载原始例程后报错如下:
Description Resource Path Location Type
"#" not expected here .ccsproject /2837x_logN line 1, external location: C:\ti\controlSUITE\libs\math\CLAmath\v4_02_00_00\examples\2837x_logN\cpu01\CLAShared.h C/C++ Problem
"#" not expected here .ccsproject /2837x_logN line 1, external location: C:\ti\controlSUITE\libs\math\CLAmath\v4_02_00_00\include\CLAMath.h C/C++ Problem
expected a ";" .ccsproject /2837x_logN line 1, external location: C:\ti\controlSUITE\libs\math\CLAmath\v4_02_00_00\include\CLAMath.h C/C++ Problem
gmake: *** [logN.obj] Error 1 2837x_logN C/C++ Problem
gmake: Target 'all' not remade because of errors. 2837x_logN C/C++ Problem
unrecognized token .ccsproject /2837x_logN line 1, external location: C:\ti\controlSUITE\libs\math\CLAmath\v4_02_00_00\examples\2837x_logN\cpu01\CLAShared.h C/C++ Problem
unrecognized token .ccsproject /2837x_logN line 1, external location: C:\ti\controlSUITE\libs\math\CLAmath\v4_02_00_00\include\CLAMath.h C/C++ Problem
对原始例程, .cla文件里的如果#include "cla_atan_shared.h",那这个文件.h改动会告警,而如果只是.c文件包含该.h文件,改动该.h不会告警
对原始例程, .cla文件里的如果#include "cla_atan_shared.h",那这个文件.h改动会告警,而如果只是.c文件包含该.h文件,改动该.h不会告警
如果对cla_atan_shared.h做任何一点改动(比如说删掉一行注释,或者删一个无关紧要的空格),都会在cla_atan_shared.h首行报"#" not expected here
我这边试了一下编译是没有问题的。
还是建议你升级下CCS然后再尝试一下。