编译错误,请求帮助!!!

老的v2.9库升级为v3.5后,产生许多编译错误,怎么回事啊?

Build target 'Target 1' assembling STARTUP.A51... compiling Main.c... linking... *** WARNING L14: INCOMPATIBLE MEMORY MODEL MODULE: .\CH375HFA.LIB (CH375SEC) MODEL: LARGE *** WARNING L14: INCOMPATIBLE MEMORY MODEL MODULE: .\CH375HFA.LIB (CH375BYT) MODEL: LARGE *** WARNING L14: INCOMPATIBLE MEMORY MODEL MODULE: .\CH375HFA.LIB (CH375DSZ) MODEL: LARGE *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEQUERY?MAIN *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILELOCATE?CH375SEC *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375DISKQUERY?CH375DSZ *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_OK_ONE_TEX?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_CH375S10?CH375MAI CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_WRITEBYTESEQ?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_READ_NUMBYTE?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_MSTOPIFERROR?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?_DPRINTF?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?MDELAY100MS?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?PRINTF?PRINTF CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L15: MULTIPLE CALL TO SEGMENT SEGMENT: ?PR?WAIT_KEY?MAIN CALLER1: ?C_C51STARTUP CALLER2: ?PR?EXTERN0_ISR?MAIN *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: _XREADFROMEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: _XWRITETOEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: _XWRITETOEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) ADDRESS: 6F9AH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: _XWRITETOEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) ADDRESS: 7027H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: _XREADFROMEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) ADDRESS: 6489H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: _XREADFROMEXTBUF MODULE: .\CH375HFA.LIB (CH375SEC) ADDRESS: 6520H

(1)“INCOMPATIBLE”:工程编译模式与库编译模式不兼容,把工程的编译模式改为Large即可 (2)“UNCALLED”:未调用,不影响 (3)“MULTIPLE”:重复调用,有些函数不支持重载 (4)“UNRESOLVED”:函数未定义 这个工程的改动很大,建议您参考例程,逐步添加其他功能:UploadImages/20099129352346.rar


只有登录才能回复,可以选择微信账号登录