Please read tips for efficient and successful posting and posting code
ROOT Version: v_6.18/04
Platform: MacOsMojave
Compiler: g++(XCode)
Hi,
I’ve downloaded root and I’m having some troubles.
When I try to compile a .cpp code linking to a root library I get the following error:
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -O2 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
With exit code 256
warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
**input_line_1:1:10:** **fatal error:** **'new' file not found**
#include <new>
**^~~~~**
**input_line_3:37:10:** **fatal error:** **'string' file not found**
#include <string>
**^~~~~~~~**
Looking forward to hearing your suggestions,
Dario