想使用sprintf格式化输入函数,但是编译通不过,代码如下
#include "stdio.h"
#include "math.h"
char s[10];
void mian(void)
{
sprintf(s, "%d", 123);
fabs(123);
while(1);
}
错误代码如下
error #10010: errors encountered during linking; "example1.out" not built
>> Compilation failure
gmake: *** [example1.out] Error 1
gmake: Target `all' not remade because of errors.
Eric Ma:
quan,
这个错误代码难以看出什么原因,rebuild工程,在Console中查看编译过程信息,将出错的具体原因复制上来。
Eric