-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
use of undeclared identifier 'UINT8_MAX' #451
Comments
From http://stackoverflow.com/questions/16748392/cant-find-symbols-in-stdint-h:
Could you try to define |
@nlohmann oh yeah, it's helpful for me, thank you very much! |
Good to hear. I shall add a comment to the README. |
Why not use |
Good point! |
I replaced the macros with calls to |
@biyunhuang Could you please try the current version if it works without the need of defining |
I could reproduce the original error as well as verify it is fixed with the current version with the following configuration: Application.mk
Android.mk
testfile.cpp #include <json.hpp>
using json = nlohmann::json;
int main()
{
json j = 1;
} and Android NDK r10e from https://github.com/android-ndk/ndk/wiki. |
hello, i meet this error , json.hpp:6365:59: error: use of undeclared identifier 'UINT8_MAX',
Can someone help me with this question?
i compile in ndk , the version is ndk-r10e
this is my content in application.mk:
APP_STL := c++_shared
NDK_TOOLCHAIN_VERSION := clang3.6
APP_CPPFLAGS += -std=c++11 -frtti -fexceptions
APP_PLATFORM = android-19 (if android-21 ,Will not have this problem)
The text was updated successfully, but these errors were encountered: