Sorry for the late reply. If you want to embed the interpreter in your program, you will need to set the link to libCling , or you must do this. At the command line, you can:
#include "cling/Interpreter/Interpreter.h"
Then, at the prompt, you can use the gCling variable, which is a reference to the interpreter itself. For instance:
gCling->process("somecodehere")
A good start to learning about hooking is its test suite and doxygen documentation. The mailing list cling-dev@cern.ch also a good idea.
source share