[STM8] 编译问题

[复制链接]
1427|2
 楼主| czx2014 发表于 2015-1-14 23:09 | 显示全部楼层 |阅读模式
----------- Project 2 - STM8 Cosmic - Configuration Debug -------------

Compiling drv_base_timer.c...
cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Hstm8"  -clDebug\ -coDebug\ drv_base_timer.c
drv_base_timer.c:

Compiling main.c...
cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Hstm8"  -clDebug\ -coDebug\ main.c
#error cpstm8 main.c:44(4) missing prototype
main.c:
The command: "cxstm8 +debug -pxp -no -l +mods0 -pp -i"C:\Program Files (x86)\COSMIC\CXSTM8_32K\Hstm8"  -clDebug\ -coDebug\ main.c " has failed, the returned value is: 1
exit code=1.

2.elf - 3 error(s), 0 warning(s)
戈卫东 发表于 2015-1-14 23:19 | 显示全部楼层
main.c:44(4) missing prototype
 楼主| czx2014 发表于 2015-1-15 09:26 | 显示全部楼层
   在主函数中调用其他函数,会出现这种提示: missing prototype。调用的函数在其他头文件中声明过了,并且头文件也包含进来了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

20

帖子

0

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