uVision2编译error及waring
Build target 'Target 1'
compiling main.c...
compiling dispLCD.c...
compiling getkeyscan.c...
compiling menuHTML.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_?GETMENUITEMS?MENUHTML
*** ERROR L107: ADDRESS SPACE OVERFLOW
SPACE: DATA
SEGMENT: ?DT?_GETTAGTEXT?MENUHTML
LENGTH: 0006H
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: _GETMENUITEMS
MODULE: main.obj (MAIN)
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?_GETMENUITEMS?BYTE
MODULE: main.obj (MAIN)
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: ?_GETMENUITEMS?BYTE
MODULE: main.obj (MAIN)
ADDRESS: 08A8H
*** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL
SYMBOL: _GETMENUITEMS
MODULE: main.obj (MAIN)
ADDRESS: 08B4H
Program Size: data=148.0 xdata=0 code=4079
Target not created
请大家看看到底是什么意思,去网上查了查还是不知道什么意思,那些地址是什么意思啊?
还有一个问题,程序中用了递归调用的时候,那个堆栈指针怎么设置?
[解决办法]
把你的代码贴出来看看!!
[解决办法]
*** ERROR L107: ADDRESS SPACE OVERFLOW就没有了,有关GETMENUITEMS还是有错误,
这个是递归倒致的过量栈占用
最好别递归,这种小系统伤不起那些优雅的代码
至于那些警告,是你调用了没有声明的函数引起
找到相应的头文件,或者,给一个正确的声明即可
[解决办法]