Problem compiling locally on Mac


I have a problem compiling locally on my Mac (macOS 10.12.6, Xcode 9.2) using root v6.10.8 (root_v6.10.08). My problem looks a lot like described in, but as mentioned in the Jira it should have been fixed with the latest version. However I still experience exactly this problem with my little test program:


#include <TString.h>
int main()
std::cout << “Hello World” << std::endl;
return 0;

… using

g++ -O -Wall -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/Applications/root_v6.10.08/include -c -o test.o test.C

…I still get:

In file included from test.C:3:
In file included from /Applications/root_v6.10.08/include/TString.h:28:
/Applications/root_v6.10.08/include/RStringView.h:35:12: error: unknown type name 'basic_string_view’
typedef basic_string_view string_view;
/Applications/root_v6.10.08/include/RStringView.h:35:29: error: expected unqualified-id
typedef basic_string_view string_view;

Please tell me, what is wrong, I thought this issue is fixed in the new version of root v6?

First a remark on posting code snippets:

Second, it is most likely that XCode was updated and ROOT was not recompiled ( I just went through this two days ago):

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.