We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[检查头文件没问题,应该是没有使用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
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; }
Uploading patchfile.patch…
The text was updated successfully, but these errors were encountered:
No branches or pull requests
[检查头文件没问题,应该是没有使用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…
The text was updated successfully, but these errors were encountered: