SDCC缺少头文件pic16f887.h

时间:2016-02-08 18:37:36

标签: compilation

尝试通过SDCC

编译微控制器的c程序

跑步:

sdcc -mpic14 -p16f887 blink.c

给出:

blink.c:6:27: error: pic/pic16f887.h: No such file or directory
blink.c:12: warning 197: keyword 'at' is deprecated, use '__at' instead
blink.c:12: error 20: Undefined identifier '_CONFIG1'
blink.c:12: error 2: Initializer element is not constant
blink.c:13: warning 197: keyword 'at' is deprecated, use '__at' instead
blink.c:13: error 20: Undefined identifier '_CONFIG2'
blink.c:13: error 2: Initializer element is not constant
blink.c:43: error 20: Undefined identifier 'TRISC'
blink.c:65: error 20: Undefined identifier 'PORTC'

0 个答案:

没有答案