用CCS编译程序时,报错如下:

Description Resource Path Location Type
make: *** missing separator.  Stop. main.d /G2553_MPU6050/Debug line 19 C/C++ Problem

 

只有这一个错误。

然后Debugger里的main.d就显示红叉,打开它,就这样:

各种CCS的编译错误

 

 

 

 

最后发现,只要不断删除出现的main.d文件就可以重新编译了。具体什么原因不知道

 

 

 

 

 

2.pointless comparison of unsigned integer with zero warning:  #186-D: pointless comparison of unsigned integer with zero  

解释:无符号整型和0的无意义比较  影响:一个潜在的问题。判断无符号数大于等于0时,由于无符号数没有负数,这种判断恒为真.

 

 

Description    Resource    Path    Location    Type
#131 expected a "{"    main.c    /gesture distinguish    line 60    C/C++ Problem
 

错误是指头文件里,最后一个声明,没加分号

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2021-07-03
  • 2021-04-09
  • 2022-12-23
  • 2021-09-09
  • 2022-02-24
猜你喜欢
  • 2021-08-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案