Hi Mario,
exit code 1 means it succeeded. Is /home/mario/pythia/libMyParticles.so
really not there?
Axel.
Mario Kadastik wrote:
> 
> 
>> instead of .L MyCode.C+ do
>>
>> gSystem->CompileMacro("MyCode.C","",libMyCode"). The extension for a
>>
>> shared lib of you current platform is added automatically. Have a look
>>
>> at http://root.cern.ch/root/html/TSystem#TSystem:CompileMacro to see
>>
>> some doc, and what else it can do (e.g. debug symbols etc).
>>
> 
> for some reason there is a difference in running .L particles.cpp+ and
> the gSystem->CompileMacro()... see:
> 
> 
> root [0] .L particles.cpp+
> 
> Info in <TUnixSystem::ACLiC>: creating shared library
> /home/mario/pythia/./particles_cpp.so
> 
> root [1]
> 
> 
> and the file particles_cpp.so appears and is usable.
> 
> 
> root [0] gSystem->CompileMacro("particles.cpp","","libMyParticles")
> 
> Info in <TUnixSystem::ACLiC>: creating shared library
> /home/mario/pythia/libMyParticles.so
> 
> (int)1
> 
> root [1]
> 
> 
> in this case, the file isn't actually created (exit code 1 as I
> understand). Ideas?
> 
> 
> --------------------------------
> 
> Mario Kadastik
> 
> CMS experiment
> 
> mario.kadastik_at_cern.ch <mailto:mario.kadastik_at_cern.ch>
> 
> 
> "Physics is like sex, sure it may give some practical results, but
> that's not why we do it"
> 
>     --- Richard P. Feynman
> 
> 
> 
Received on Sun Jul 02 2006 - 17:15:45 MEST