While I do make in a program I want to install, which installs fine in Opensuse, I get the error
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++
standard library instead [-Wstdlibcxx-not-found]
/Users/xyz/rivet/YODA-1.7.7/pyext/yoda/util.cpp:446:10: fatal error: 'utility' file not found
#include <utility>
^~~~~~~~~
1 warning and 1 error generated.
error: command 'g++' failed with exit status 1
make[2]: *** [all-local] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
What I understand that it complains about not finding the utility library in c++ but for MacOS, the compiler is clang and it shows it has the file
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility
MacOS version is 10.14.6, and Xcode version is Version 11.0 (11A420a). How to solve this case then?
g++ --print-search-dirs
note the last s – mmmmmm Sep 26 '19 at 17:44