RE: load a list of libs

From: Fine, Valeri <fine_at_bnl.gov>
Date: Mon, 10 Mar 2008 11:47:54 -0400


> Hi Dario,
>
> this I know. But this command seems to load only one library. Is there
> something like:
> root[] gSystem->LoadListOfLibs("-L/path_to_libs -lApp1 -lApp2 -lApp3");

Yes, it does exist. Here you are ;-)

{

   TString lPath = gSystem->GetDynamicPath();    lPath+= ":path_to_libs";
   gSystem->SetDynamicPath((const char*)lPath);    const char *libs[] = { "App1", "App2", "App3" };    for (int i = 0; i < sizeof(libs)/sizeof(char *); i++)

      printf(" Loading %s %d\n", libs[i], gSystem->Load(libs[i]));    

}

Hope this helps

                         Valeri Fine


Brookhaven National Laboratory
Upton, NY 11973, USA
Phone: +1 631 344 7806
Fax: +1 631 344 4206
E-mail: fine_at_bnl.gov
> Thanks, Dmitry
>
> Dario Berzano пишет:
> > On Mon, Mar 10, 2008 at 6:06 PM, Dmitry Naumov <naumov_at_nusun.jinr.ru>
> wrote:
> >
> >> Dear roottalk,
> >>
> >> is there an implemented way to load a list of libraries made in the
> form:
> >> -L/path_to_libs -lApp1 -lApp2 -lApp3 ...
> >> from the root interpreter?
> >>
> >
> > Hi Dmitry,
> >
> > you can try gSystem->Load("library_name"). The documentation is
> > available here:
> >
> > http://root.cern.ch/root/html/TSystem.html#TSystem:Load
> >
> > Regards,
> >
Received on Mon Mar 10 2008 - 16:48:24 CET

This archive was generated by hypermail 2.2.0 : Tue Mar 11 2008 - 11:50:01 CET