1 expected an identifier:#define宏定义常量后,如果再用前面定义的常量作为枚举常量就会报错,方法,去掉#define宏定义

2 ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL 定义的变量和外部声明调用的变量存储类型不一致,比如一个DADA一个xdata.

3 Error: L6200E: Symbol USART1_IRQHandler multiply defined (by uart_1.o and uart.o).:不小心在FWLIB和moudle下都有UART.C

4Error: L6915E: Library reports error: __use_no_semihosting was requested, but a semihosting fputc was linked inde三种解决方案

5 编译SeggerRTT报错: warning: #47-D: incompatible redefinition of macro "SEGGER_RTT_LOCK"新工程中勾选了GNU extensions选项。然后去掉该选项就可以成功编译

6工程路径中有中文(不过之前Keil是支持的,Keil软件的BUG),将路径变成中文就可以的了&清除所有断点再关闭

KEIL编译错误总结:

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-01-03
  • 2021-10-04
  • 2021-08-04
  • 2022-12-23
猜你喜欢
  • 2021-10-02
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-02-04
相关资源
相似解决方案