missing prototype stm8 in stvd with cosmic

[复制链接]
 楼主| nil_li 发表于 2013-8-28 20:53 | 显示全部楼层 |阅读模式

谁能告诉这个main.c编译出错是应为什么原因?????如果删除func()则编译通过
环境:win7  stm8s103f3   stvd   cosmic


//main.c
int var;
void func(){
        var ++;
}
main(){
        var = 0;
        func();   //#error cpstm8 ..\..\source\main.c:14(2) missing prototype
        while (1)func(); //#error cpstm8 ..\..\source\main.c:14(2) missing prototype
}

----------- Project ikea25wdim - STM8 Cosmic - Configuration Debug -------------

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

7

帖子

0

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

2

主题

7

帖子

0

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