Whenever I try to compile ANY macro in my src directory, I get errors at compile time like:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:539:2: error: <atomic> is not implemented
/Users/alexclifton/ROOT/root/include/Rtypes.h:217:14: error: no type named 'atomic' in namespace 'std'
/Users/alexclifton/ROOT/root/include/Rtypes.h:217:20: error: expected unqualified-id
/Users/alexclifton/ROOT/root/include/TStorage.h:82:4: error: unknown type name 'atomic_TClass_ptr'
/Users/alexclifton/ROOT/root/include/TObject.h:214:4: error: unknown type name 'atomic_TClass_ptr'
and so on. It seems to have to do with this piece of software called “atomic” but I am not sure how to correct these errors. Does anyone have any suggestions? I can provide the entire output at compile time in addition to attaching my CMakeLists.txt files as well. Thanks in advance.
Including the TH1.h header file produces the following errors which I have attached to this post. It again seems to be coming from atomic, but I am not sure how to correct for this. Both of my CMakeLists.txt files (one in the project directory the other in the project src directory) have the following lines in them:
must - on any current MacOSX without extra provisions (homebrew etc) - use clang as compiler; GCC is not available anymore;
must enable c++11;
should not pass the include paths pointing to the compiler’s standard library (it knows that itself); the need for this is a symptom that something fundamental is broken.
You might want to use ACLiC: .L MyCode.C+ (note the ‘+’ at the end) which does all these things automatically: calls the right compiler with the right flags and loads the resulting shared library into ROOT.
I am having the same issue when compiling another library WAT.
I do not understand how you implement the changes you propose. I real not an expert with env variables.Could you be more explicit?