[检查头文件没问题,应该是没有使用C++11以上编译?
查看报错位置是在SeetaNet\src\orz\tools\box.cpp中,查看一下是这个函数的问题:
static int safe_ceil(double x) { int result; int save_round = std::fegetround(); std::fesetround(FE_UPWARD); result = int(std::lrint(x)); std::fesetround(save_round); return result; }
了解一下是对浮点值向上取整吧,而且只使用了2处位置,所以我把她改成了std::ceil()函数,
这样我的交叉编译器编译通过了XD
Uploading patchfile.patch…
[检查头文件没问题,应该是没有使用C++11以上编译?
查看报错位置是在SeetaNet\src\orz\tools\box.cpp中,查看一下是这个函数的问题:
static int safe_ceil(double x) { int result; int save_round = std::fegetround(); std::fesetround(FE_UPWARD); result = int(std::lrint(x)); std::fesetround(save_round); return result; }了解一下是对浮点值向上取整吧,而且只使用了2处位置,所以我把她改成了std::ceil()函数,
这样我的交叉编译器编译通过了XD
Uploading patchfile.patch…