This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs5.2调用标准c库问题



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