请问这个错误怎么改?

2019-08-03 18:15发布

[main.c] "D:ccsC2000cgtoolsincl2000" -g -q -fr"D:/ccs/MyProjects/yrpwm/Debug" -d"_DEBUG" -d"LARGE_MODEL" -ml -v28 -@"Debug.lkf" "main.c"

"target.h", line 38: fatal error: #error Critical  A target must be defined Please define a target in  the CCS Build Options/Compiler Tab/Preprocessor/ Symbol defines

1 fatal error detected in the compilation of "main.c".
Compilation terminated.
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
2条回答
zhangmangui
1楼-- · 2019-08-03 23:10
从提示来看  应该是需要在build option中对某个进行预编译
Preprocessor
具体说不清楚
拿起书本
2楼-- · 2019-08-04 04:56
选择Project/Rebuild All或单击 (Rebuild All)菜单条按钮, CCS重新进行编辑、汇编、连接工程里的所有文件。

一周热门 更多>