Hi Jacek, thanks for pointing this out. I've fixed it. -- Fons On Tue, 2002-12-10 at 15:19, Jacek M. Holeczek wrote: > > gROOT->LoadMacro is not intended to load a shared lib. Use instead > > gSystem->Load > > I am loading a "precompiled" macro (in form of a shared library). > That's why I was using "gROOT->LoadMacro" (this is the same as doing > "root [0] .L /.../MyPrecompiledMacro.so", right ?) > The problem is : it breaks on "+" inside of the macro's file name. > Most probably it will also break if this is not a shared library, but an > ordinary c++ file. Please fix it. > (For the time being I am just changing the "MacroPath" adding my > "magic" subdirectory with "++" inside and then gROOT->LoadMacro("G4.so") > works. The "gSystem->Load" does not seem to have this problem - I don't > remember any more why I decided to use "gROOT->LoadMacro" instead of > "gSystem->Load" - that was quite a long time ago - most probably I had > problems with "gSystem->Load" which disappeared when I used > "gROOT->LoadMacro" - and up to now I was happily using it.) > > Jacek. -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:23 MET