Skip to content
New issue

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

ulibc compile error #20

Closed
hh-kai opened this issue Nov 18, 2020 · 1 comment
Closed

ulibc compile error #20

hh-kai opened this issue Nov 18, 2020 · 1 comment

Comments

@hh-kai
Copy link

hh-kai commented Nov 18, 2020

使用arm-hisiv500-linux不能编译通过 所以是ulibc的不支持是吧

utils/json.hpp: In static member function ‘static void nlohmann::detail::lexer<BasicJsonType, InputAdapterType>::strtof(float&, const char*, char**)’:
utils/json.hpp:6785:13: error: ‘strtof’ is not a member of ‘std’
f = std::strtof(str, endptr);

@ithewei
Copy link
Owner

ithewei commented Nov 18, 2020

关于json.hpp导致编译失败的说明见FAQ
json.hpp被http模块使用,如果你不使用http模块,可关闭WITH_HTTP选项
如果你使用http模块,可选择添加WITHOUT_HTTP_CONTENT预编译宏,屏蔽http的body解析成结构化数据功能,自己拿到body做解析(如选用其它的json解析库cJSON)

@hh-kai hh-kai closed this as completed Nov 19, 2020
@ithewei ithewei changed the title ulibc 不能编译通过 ulibc compile error Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants