Just run brew install nlohmann-json and installed the latest stable version 3.7.3
with brew test nlohmann-json i got 19 errors
i got the latest apple clang, no xcode installed
here is the log:
2020-05-04 17:46:03 -0300
/usr/bin/clang++
test.cc
-I/usr/local/Cellar/nlohmann-json/3.7.3/include
-std=c++11
-o
test
In file included from test.cc:2:
In file included from /usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:46:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/numeric:148:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace
using ::signbit;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
~~^
/usr/local/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
^
In file included from test.cc:2:
In file included from /usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:46:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/numeric:148:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:320:9: error: no member named 'isinf' in the global namespace
using ::isinf;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace
using ::isnan;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:323:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
^~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:731:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
^
In file included from test.cc:2:
In file included from /usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:46:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/numeric:148:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:324:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
^~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:760:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
^
In file included from test.cc:2:
In file included from /usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:46:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/numeric:148:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:8912:59: error: expected unqualified-id
if (JSON_HEDLEY_UNLIKELY(not std::isfinite(res)))
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x)) \
^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:12833:17: error: expected unqualified-id
assert(std::isfinite(value));
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x)) \
^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:13537:17: error: expected unqualified-id
assert(std::isfinite(value));
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x)) \
^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:13712:17: error: expected unqualified-id
assert(std::isfinite(value));
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x)) \
^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:13715:14: error: expected unqualified-id
if (std::signbit(value))
^
/usr/local/include/math.h:170:5: note: expanded from macro 'signbit'
( sizeof(x) == sizeof(float) ? __inline_signbitf((float)(x)) \
^
In file included from test.cc:2:
/usr/local/Cellar/nlohmann-json/3.7.3/include/nlohmann/json.hpp:14431:22: error: expected unqualified-id
if (not std::isfinite(x))
^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
( sizeof(x) == sizeof(float) ? __inline_isfinitef((float)(x)) \
^
19 errors generated.
HOMEBREW_VERSION: 2.2.15-2-gb06a7af
ORIGIN: https://github.com/Homebrew/brew
HEAD: b06a7af604130c0b133a336e9cb50e4b135778da
Last commit: 49 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 8c2cb0a6d90feaaa7ce298ddfb16b934927eab9f
Core tap last commit: 40 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_MAKE_JOBS: 12
CPU: dodeca-core 64-bit penryn
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
Clang: 11.0 build 1103
Git: 2.24.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
Java: 14.0.1
macOS: 10.15.4-x86_64
CLT: 11.4.1.0.1.1586360307
Xcode: N/A
CC: /usr/bin/clang
CXX: /usr/bin/clang++
OBJC: /usr/bin/clang
OBJCXX: /usr/bin/clang++
CFLAGS: -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
CXXFLAGS: -Os -w -pipe -march=nehalem -mmacosx-version-min=10.15 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
CPPFLAGS: -F/usr/local/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
LDFLAGS: -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
MAKEFLAGS: -j12
CMAKE_PREFIX_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr
CMAKE_FRAMEWORK_PATH: /usr/local/Frameworks:/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks
PKG_CONFIG_LIBDIR: /usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.15:/usr/lib/pkgconfig
HOMEBREW_GIT: git
PATH: /usr/local/bin:/usr/local/Homebrew/Library/Homebrew/shims/scm:/usr/bin:/bin:/usr/sbin:/sbin
CPATH: /usr/local/include:/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
Just run
brew install nlohmann-jsonand installed the latest stable version 3.7.3with
brew test nlohmann-jsoni got 19 errorsi got the latest apple clang, no xcode installed
here is the log: