Hello,
I have installed root using homebrew. Root basics work, but trying to compile an app using root libraries produces the error below. It looks that it tries to use an ancient version of g++, but not the one provided by Xcode line tools. Below are the paths and error…
Many thanks,
Kirill
OOT_Exercises % echo $LD_LIBRARY_PATH
/usr/local/Cellar/root/6.32.08/lib/root
kprok@MacBook-Pro-324 ROOT_Exercises % echo $PATH
/usr/local/Cellar/root/6.32.08/bin:/usr/local/bin:/usr/local/sbin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin
kprok@MacBook-Pro-324 ROOT_Exercises % g++ demo_1.cxx $(root-config --glibs --cflags --libs) -o demo_1
g++: error: unrecognized command line option ‘-stdlib=libc++’
g++: error: unrecognized command line option ‘-stdlib=libc++’
g++: error: unrecognized command line option ‘-std=c++17’