How to compile CERN ROOT macro (analysis C++ code)?

Don’t use gcc/cc/clang/$CC as an entry point to compile C++ code. It should work with g++/clang++/$CXX (also supposed to work with -x c++ flag, but there seems to be a bug). The GCC generally provides the auto-detection of the compiled language, but it’s not effective in nixpkgs because cc-wrapper chooses not to link the standard C++ libraries unless C++ compiler is explicitly invoked.

1 Like