想使用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.