You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The macros are available when __STDC_LIMIT_MACROS is defined (additionally __STDC_CONSTANT_MACROS seems to be missing as well). This is probably incorrectly gated or missing when compiling c++. Objective-C and C pick up on these defines for UINT8_MAX and accompanying macros. For now you can define both of those macros globally and it should have no ill effects on your project.
Could you try to define __STDC_LIMIT_MACROS when compiling your code?
I replaced the macros with calls to numeric_limits. @biyunhuang Could you try the current version if it works without the need of defining __STDC_LIMIT_MACROS?
Activity
nlohmann commentedon Feb 14, 2017
From http://stackoverflow.com/questions/16748392/cant-find-symbols-in-stdint-h:
Could you try to define
__STDC_LIMIT_MACROSwhen compiling your code?biyunhuang commentedon Feb 15, 2017
@nlohmann oh yeah, it's helpful for me, thank you very much!
nlohmann commentedon Feb 15, 2017
Good to hear. I shall add a comment to the README.
TurpentineDistillery commentedon Feb 15, 2017
Why not use
numeric_limitshere, considering that they are already used elsewhere?nlohmann commentedon Feb 15, 2017
Good point!
🚧 replaced throws (#440) and _MAX/_MIN macros (#451)
nlohmann commentedon Feb 15, 2017
I replaced the macros with calls to
numeric_limits. @biyunhuang Could you try the current version if it works without the need of defining__STDC_LIMIT_MACROS?nlohmann commentedon Feb 19, 2017
@biyunhuang Could you please try the current version if it works without the need of defining
__STDC_LIMIT_MACROS?nlohmann commentedon Feb 21, 2017
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
and Android NDK r10e from https://github.com/android-ndk/ndk/wiki.