分享

Keil C51与Keil RealView MDK常见错误

 共同成长888 2015-04-20

1、安装先后顺序:
   要先安装Keil C51,后安装RVMDK,否则会出现一系列的编译问题。
2、Keil常见错误――last line of file ends without a newline原因及解决方法
   当使用keil编译时,弹出这样的警告信息:
main.c(7): warning:  #1-D: last line of file ends without a newline
    这个是由于在main函数的“}”后,没有加回车
    只要在main函数的“}”后加回车键,此警告信息即可消除。
 
3.keil c51 不能使用:Go to Definition of....的解决方法
     近来有读者问到在Keil C51中使用Go to Definition of....时,出现警告对话框:

                    no browse information available in'工程目录'

                    check-[target-options][output][browse information] then rebuild the target!

查了一些资料,原因大概有二:

1、代码中嵌有汇编,汇编代码去掉后能查看。

2、选中target1,然后点击右键,选择 option for target 'target1' ,在弹出的对话框中选择output选项卡,看Browse information 选项有没有勾选,如果没有,请勾选,然后把你的工程rebuild 一次。

 

网上相关资料:

    http://blog.csdn.net/yam_killer/article/details/7673191

    http://zhidao.baidu.com/question/218261369.html

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多