I created a share lib, i.e. lib_production.so. When manually load it using "gsystem->Load(“lib_production.so”), then manually execute the following command “production pd” works. If putting everything in a macro, i.e.
{
gSystem->Load(“lib_production.so”);
production pd;
}
it complains the “production” is not defined. I must have missed something. Any help is appreciated. A copy of the lib_production.so can be found at:
I think this is not supported by cling: the interpreter is backed by a real compiler. Therefore, it cannot know what the production type is at interpretation time.
You can:
no, it is not. I think R_LOAD_LIBRARY loads a library at parsing time, “gSystem->Load” at runtime. If it works for you w/o including headers, it means that the library contains some dictionaries and ROOT is able to parse the necessary headers behind the scenes.