在keil中,把#include<STC12C5A60S2.H>头文件改成 #include<reg51.H>后,两百多个提示错误,变成了36个,但main.c(2): warning C318: can't open file 'stc_pwm.H'
main.c(116): error C202: 'CCON': undefined identifier
main.c(117): error C202: 'CL': undefined identifier
main.c(118): error C202: 'CH': undefined identifier
main.c(119): error C202: 'CMOD': undefined identifier
main.c(120): error C202: 'CCAPM1': undefined identifier
main.c(121): error C202: 'CCAP1H': undefined identifier
main.c(122): error C202: 'CCAP1L': undefined identifier
main.c(123): error C202: 'CR': undefined identifier
main.c(239): error C202: 'CCAP1H': undefined identifier
main.c(240): error C202: 'CCAP1L': undefined identifier
main.c(255): error C202: 'CCAP1H': undefined identifier
main.c(256): error C202: 'CCAP1L': undefined identifier
main.c(309): error C202: 'CCAP1H': undefined identifier
main.c(310): error C202: 'CCAP1L': undefined identifier
main.c(325): error C202: 'CCAP1H': undefined identifier
main.c(326): error C202: 'CCAP1L': undefined identifier
main.c(344): error C202: 'CCAP1H': undefined identifier
main.c(345): error C202: 'CCAP1L': undefined identifier
main.c(348): error C202: 'CCAP1H': undefined identifier
main.c(349): error C202: 'CCAP1L': undefined identifier
main.c(352): error C202: 'CCAP1H': undefined identifier
main.c(353): error C202: 'CCAP1L': undefined identifier
main.c(356): error C202: 'CCAP1H': undefined identifier
main.c(357): error C202: 'CCAP1L': undefined identifier
main.c(360): error C202: 'CCAP1H': undefined identifier
main.c(361): error C202: 'CCAP1L': undefined identifier
main.c(364): error C202: 'CCAP1H': undefined identifier
main.c(365): error C202: 'CCAP1L': undefined identifier
main.c(464): error C202: 'CCAP1H': undefined identifier
main.c(465): error C202: 'CCAP1L': undefined identifier
main.c(472): error C202: 'CCAP1H': undefined identifier
main.c(473): error C202: 'CCAP1L': undefined identifier
main.c(480): error C202: 'CCAP1H': undefined identifier
main.c(481): error C202: 'CCAP1L': undefined identifier
main.c(488): error C202: 'CCAP1H': undefined identifier
main.c(489): error C202: 'CCAP1L': undefined identifier
main.c - 36 Error(s), 1 Warning(s).这些如何解决?请高人指点下。。。 |