keil3问题报警

[复制链接]
1855|4
 楼主| zjucsd 发表于 2012-11-16 10:04 | 显示全部楼层 |阅读模式
如图所示,求教!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
forgot 发表于 2012-11-16 12:19 | 显示全部楼层
zf_015820 发表于 2012-11-16 12:28 | 显示全部楼层
应该没有使用外部标志吧?
shell.albert 发表于 2012-11-16 12:33 | 显示全部楼层
加上extern
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

粉丝
快速回复 在线客服 返回列表 返回顶部