打印

keil3问题报警

[复制链接]
1446|4
手机看帖
扫描二维码
随时随地手机跟帖
沙发
forgot| | 2012-11-16 12:19 | 只看该作者
89c58

使用特权

评论回复
板凳
zf_015820| | 2012-11-16 12:28 | 只看该作者
应该没有使用外部标志吧?

使用特权

评论回复
地板
shell.albert| | 2012-11-16 12:33 | 只看该作者
加上extern

使用特权

评论回复
5
airwill| | 2012-11-16 12:44 | 只看该作者
本帖最后由 airwill 于 2012-11-16 12:45 编辑

这是连接错误.
意思是连接器没有在库中找到 hbcd 这个函数的实现代码.

从 KEIL 官方的网站上看到的说明:
WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL.
CAUSE
This segment is a library routine that your program utilizes. For some reason, the linker cannot find the library which contains this routine.

RESOLUTION
Choose BL51 Code Banking Linker from the Options menu and click on the Linking tab. Make sure the option Ignore Default Libraries is unchecked. Turning that option on causes the linker to ignore the standard C51 libraries.

If that does not work, then rename the C51 directory (or wherever you installed the tools) and try re-installing. It may be that one of the .LIB files was accidentally deleted or has become corrupted.

MORE INFORMATION
■Refer to Warning L2 in the BL51 User's Guide.

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

100

主题

351

帖子

3

粉丝