求大侠解救!Keil编译出现警告DUANDIANBAOHU.C(135): warning C206: 'Stop': missing function-prototype
DUANDIANBAOHU.C(135):warningC206:'Stop':missingfunction-prototypelinking...***WARNING...
DUANDIANBAOHU.C(135): warning C206: 'Stop': missing function-prototype
linking...
*** WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_RDFROMROM?DUANDIANBAOHU
CALLER1: ?C_C51STARTUP
CALLER2: ?PR?INIT0?DUANDIANBAOHU
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 02C5H
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 0254H
Program Size: data=33.0 xdata=0 code=770 展开
linking...
*** WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_RDFROMROM?DUANDIANBAOHU
CALLER1: ?C_C51STARTUP
CALLER2: ?PR?INIT0?DUANDIANBAOHU
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 02C5H
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 0254H
Program Size: data=33.0 xdata=0 code=770 展开
2014-03-21
展开全部
*** WARNING L15: MULTIPLE CALL TO SEGMENT
SEGMENT: ?PR?_RDFROMROM?DUANDIANBAOHU
CALLER1: ?C_C51STARTUP
CALLER2: ?PR?INIT0?DUANDIANBAOHU
这是告诉你RdFromRom()这个函数既被普通函数调用也被中断函数调用,存在上下文紊乱的风险。一般应尽量避免。你可以将RdFromRom()函数复制一份改名为RdFromRomInt()专供中断调用。
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 02C5H
Stop函数未声明函数原型,也没有函数实体(其实也不一定是没有,可能是放到调用它的函数后面去了,导致编译时还不知道有这么个函数)。
SEGMENT: ?PR?_RDFROMROM?DUANDIANBAOHU
CALLER1: ?C_C51STARTUP
CALLER2: ?PR?INIT0?DUANDIANBAOHU
这是告诉你RdFromRom()这个函数既被普通函数调用也被中断函数调用,存在上下文紊乱的风险。一般应尽量避免。你可以将RdFromRom()函数复制一份改名为RdFromRomInt()专供中断调用。
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: STOP
MODULE: duandianbaohu.obj (DUANDIANBAOHU)
ADDRESS: 02C5H
Stop函数未声明函数原型,也没有函数实体(其实也不一定是没有,可能是放到调用它的函数后面去了,导致编译时还不知道有这么个函数)。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询