Sorry for the late answer. If you want to embed the interpreter in your program, you will have to link against libCling
or you should build so. On the prompt, you can do:
#include "cling/Interpreter/Interpreter.h"
Then on the prompt you could use the gCling
variable which is a reference to the interpreter itself. For example:
gCling->process("somecodehere")
A good start to explore cling is its test suite and doxygen documentation. The mailing list cling-dev@cern.ch is also a good idea.