KEIL编译错误总结:

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),将路径变成中文就可以的了&清除所有断点再关闭

 

posted on 2016-03-05 10:48  杰瑞鼠  阅读(2335)  评论(0编辑  收藏  举报