I wasn’t sure what the correct category for this question is, so I put it in “Newbie” (this is my first post on this forum).
I created a .C program (macro), but get the following error when I compile it. There are additional errors, but I only copied and pasted up to the first fatal error:
root  .L program.C+ Info in <TMacOSXSystem::ACLiC>: creating shared library /file/path/to/my/program/./program_C.so In file included from input_line_1:1: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/new:89: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/exception:82: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstdlib:86: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/stdlib.h:94: /Applications/root6/install/etc/cling/lib/clang/5.0.0/include/stdlib.h:8:15: fatal error: 'stdlib.h' file not found #include_next <stdlib.h> ^~~~~~~~~~
However, when I compile the program with a makefile, I do not receive any errors and the program runs just fine from the executable.
The issue is not unique to this program. I get the same error when I compile any macro with ROOT.
I have been thinking about updating my OS and/or xcode and rebuilding root, but am not quite sure exactly what the problem is (is there an easier/simpler solution?).
In case it is relevant, here is the output of the following commands:
bash-3.2$ /usr/bin/xcodebuild -version Xcode 9.2 Build version 9C40b bash-3.2$ root -l --version ROOT Version: 6.19/01 Built for macosx64 on Jun 25 2019, 02:11:00 From heads/master@v6-19-01-280-ge8ba885322
My OS is macOS High Sierra 10.13.06
Thanks in advance for any help you can provide!
ROOT Version: 6.19/01
Platform: macOS High Sierra 10.13.06
Compiler: Not Provided