搜档网
当前位置:搜档网 › Keil编译_错误

Keil编译_错误



1) 汉化后的Keil容易出问提
-----------------------------------------------------------------------

2) keil 编译时报错信息如下:
Build target 'Target 1'
Target has no object modules
Target not Created


在项目中的主程序上右击,选: options for file 'my_main.c' 点击
再选:properties然后右边的
In...
Al... (这个可不选)
Ge...
As...
Li... 

---------------------------------------------------------------------------
3) 用keil编写的 C51错误

Build target 'Target 1'
compiling test.c...
assembling test.src...
linking...
*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL
SYMBOL: ?C_STARTUP (有的是?C_START)
MODULE: test.obj (TEST)
Program Size: data=8.0 xdata=0 code=2
"test" - 0 Error(s), 1 Warning(s).

可把头文件添加到项目(文件选 *,* 类型选c source file)


不需在项中的文件上右击,选 option for file 'myfile.c'(同上面第 2 步)

如果还不行,在头文件上右击,再选:properties 然后查看 File Type 选c source file


项目中没有头文件 Keil3中也报这个,可在项目中加个空的头文件,
并在头文件上右击,再选:properties 然后查看 File Type 选c source file
; Keil2中用不着时不用加.

-----------------------------------------------------------------------
4) Error: failed to execute 'BIN40\ArmCC'的解决办法
在keil里的菜单栏依次选择Project->Manage->Components,Environment andBooks(CEB)
(或者直接点击工具栏的图标),
然后在CEB里选择Folders/Extensions标签页,在RealView Folder里选择keil安装目录下的/ARM/BIN40,点OK后就可以正常使用了
-------------------------------------------------------------------------------------------
5) 编译出 HEX文件:
project\options for Target'Target1'\选:oupopt\勾选:create HEX file






相关主题