I want to use cling for interactive code testing and development in C++, so I have downloaded and compiled it according to the tutorial here:
My question is very simple, unfortunately, I could not find a solution on the web: How can I load a library from within a script? I have some code which depends on external libraries, and of course it is possible to start cling and issue a command “.L libgsl.so.0” in order to have access to the GSL library. Now I would like to pack all this preliminary commands in some script, so that I just need to do something like
and voilà, I can start testing code.