序
用PIC18F46K80作为处理器,MPLABX为IDE,在写完程序时编译无法通过,会报大量的warning、error。经查阅资料和反复安装IDE,得出结果是交叉编译环境安装不对。
提示的warning、error,,,
error: (195) expression syntax
(902) no chip name specified; use "PICC18 --CHIPINFO" to see available chip names
(908) exit status = 1
p18f46k80.h:6530: warning: (335) unknown pragma "varlocate"
can't open include file "delays.h"
安装MCC18、mplabc18解决
工程中选择C18编译器路径