Problem compiling locally on Mac

Hello,

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 https://sft.its.cern.ch/jira/browse/ROOT-9015, 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:

test.C:

#include
#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?
Cheers,
Martin

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.