该错误是因为:
static __inline__ double atof(const char *nptr)
{
return (strtod(nptr, NULL));
}
导致,因在NDK中stdlib.h头文件的atof函数为内联函数,所以在项目中无法直接调用,所以需要将atof()
函数改为strtod()
函数。
例如:
double x;
//将该函数改为strtod函数
//dx= atof(x);
dx= strtod(x, NULL);
该错误是因为:
static __inline__ double atof(const char *nptr)
{
return (strtod(nptr, NULL));
}
导致,因在NDK中stdlib.h头文件的atof函数为内联函数,所以在项目中无法直接调用,所以需要将atof()
函数改为strtod()
函数。
例如:
double x;
//将该函数改为strtod函数
//dx= atof(x);
dx= strtod(x, NULL);