Hello, I’m new to ROOT, I just used the root-docker for a few weeks. I found there’s a /opt/root/lib/libCling.so file, it looks like the c++ interpreter engine.
I’m wondering if it’s possible to use it in other c++ project, like linking to libCling.so and interpreting c++ source code, thanks!
Hi @jerryjin, yes in principle you can just link against libCling.so from a ROOT installation. You can also build Cling standalone, outside of ROOT, in case this is more convenient. Depending on your needs, there’s also the “upstream version” of Cling called Clang-Repl. You will get it with any recent installation of LLVM and Clang, and it’s already quite capable, so maybe that already addresses your needs.