打印

missing prototype stm8 in stvd with cosmic

[复制链接]
2291|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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

粉丝