mcc_generated_files/uart1.c:179:6: error: conflicting types for 'getch'
make[2]: *** [build/default/debug/mcc_generated_files/uart1.p1] Error 1
char getch(void)
^
make[2]: *** Waiting for unfinished jobs....
C:\Program Files\Microchip\xc8\v2.45\pic\include\c99\stdio.h:96:5: note: previous declaration is here
int getch(void);
^
1 error generated.
兄弟们,MCC自动生成的代码,报错,因为这个函数和声明的不同,这个怎么破,手工修改吗?
|