1. Error - processor types do not agree across all input files.
Solution
This error typically occurs when you have selected the wrong linker script file.
Double click on the linker script in the Project Tree and make sure you are using the correct linker script for the device you have selected under Configure>Select Device.
建工程时的Device ( Configure>Select Device设置 ) 与 Linker Script文件夹下面包含的 .lkr文件 不匹配
2. 出现了could not find file ‘c018i.o’错误
project -> build options -> project -> directories
对include serach path 和 library serach path等添加(点NEW)默认路径就行了,一般指向C:/mcc18/h C:/mcc18/lib