Dear Rooters,
I am having hard times compiling a trivial code, where I simply use TLorentzVectors.
With this program:
#include "TLorentzVector.h"
int main (int argc, char ** argv)
{
return 0 ;
}
I get the following compile error.
Could you please help me understand how to circumvent this oddity?
Best regards,
pietro
c++ -o readLHE -lm readLHE.cpp
$ c++ -o readLHE -lm -std=c++11 readLHE.cpp
In file included from readLHE.cpp:17:
In file included from /usr/local/include/TLorentzVector.h:28:
In file included from /usr/local/include/TVector3.h:21:
In file included from /usr/local/include/TMatrix.h:24:
In file included from /usr/local/include/TMatrixF.h:21:
In file included from /usr/local/include/TMatrixT.h:24:
In file included from /usr/local/include/TMatrixTBase.h:71:
In file included from /usr/local/include/TNamed.h:29:
In file included from /usr/local/include/TString.h:41:
**/usr/local/include/RStringView.h:24:12:** **fatal error:** **'experimental/string_view' file not found**
# include <experimental/string_view>
**^~~~~~~~~~~~~~~~~~~~~~~~~~**
1 error generated.
Please read tips for efficient and successful posting and posting code
ROOT Version: curl -LO https://root.cern/download/root_v6.20.04.macosx64-10.15-clang110.pkg
Platform: Macosx 10.15.3
Compiler:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin19.3.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin