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.

TMS320F28335: CCS编译报错,#10010 errors encountered during linking“xxxxx.out” not built

Part Number: TMS320F28335


去掉红色部分编译就不会报错,有大神知道怎么改嘛?

double myatof(const char *str)
{
char flag = 0; //表示正数
double res = 0.0;
double d = 10.0;

while(*str != '\0')
{
if( !(*str >= '0' && *str <= '9')) //找到字符串中的第一个数字
{
str++;
continue;
}
if(*(str-1) == '-')
{
flag = 1; //表示是一个负数
}

while(*str >= '0' && *str <= '9')
{
res = res *10.0 + (*str - '0');
str++;
}

if(*str == '.')
{ str++;}

while(*str>='0' && *str<='9')
{
res=res+(double)(*str-'0')/d;
d=d*10.0;
str++;
}
}
return res*(flag?-1:1);
}