主函数#include<p18f87k90.h>
#include<i2c.h>
//***************************************************
void main(void)
{
while(1)
{
}
}
编译出现问题一卡车
Executing: "C:\Program Files\Microchip\mplabc18\v3.41\bin\mcc18.exe" -p=18F87J90 /i"C:\Program Files\Microchip\mplabc18\v3.41\h" "SRC\main.c" -fo="main.o" -D__DEBUG -w3 -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:15:Error [1109] type mismatch in redeclaration of 'PADCFG1bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:43:Error [1109] type mismatch in redeclaration of 'CTMUCONLbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:118:Error [1109] type mismatch in redeclaration of 'RTCCFGbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:119:Error [1109] type mismatch in redeclaration of 'RCSTA2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:154:Error [1109] type mismatch in redeclaration of 'RCSTA2bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:155:Error [1109] type mismatch in redeclaration of 'TXSTA2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:186:Error [1109] type mismatch in redeclaration of 'TXSTA2bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:187:Error [1109] type mismatch in redeclaration of 'TXREG2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:188:Error [1109] type mismatch in redeclaration of 'RCREG2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:189:Error [1109] type mismatch in redeclaration of 'SPBRG2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:190:Error [1109] type mismatch in redeclaration of 'CCP2CON'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:209:Error [1109] type mismatch in redeclaration of 'CCP2CONbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:210:Error [1109] type mismatch in redeclaration of 'ECCP2CON'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:229:Error [1109] type mismatch in redeclaration of 'ECCP2CONbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:230:Error [1109] type mismatch in redeclaration of 'CCPR2'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:231:Error [1109] type mismatch in redeclaration of 'CCPR2L'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:232:Error [1109] type mismatch in redeclaration of 'CCPR2H'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:252:Error [1109] type mismatch in redeclaration of 'CCP1CONbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:272:Error [1109] type mismatch in redeclaration of 'ECCP1CONbits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:301:Error [1109] type mismatch in redeclaration of 'LCDDATA5bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:337:Error [1109] type mismatch in redeclaration of 'LCDDATA6bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:367:Error [1109] type mismatch in redeclaration of 'LCDDATA7bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:393:Error [1109] type mismatch in redeclaration of 'LCDDATA8bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:419:Error [1109] type mismatch in redeclaration of 'LCDDATA9bits'
C:\Program Files\Microchip\mplabc18\v3.41\h\p18f87j90.h:445:Error [1109] type mismatch in redeclaration of 'LCDDATA10bits'
Halting build on first failure as requested.
这个是哪个设置有问题,这个编译器第一次用,谢谢指点 |