Re: new classes

From: Mario Kadastik <mario.kadastik_at_cern.ch>
Date: Sun, 2 Jul 2006 18:54:09 +0300


[oberon] /home/mario/pythia > root -l -b root [0] gSystem->CompileMacro("particles.cpp","","libMyParticles") Info in <TUnixSystem::ACLiC>: creating shared library /home/mario/ pythia/libMyParticles.so
(int)1
root [1] .q
[oberon] /home/mario/pythia > ls -l /home/mario/pythia/libMyParticles.so ls: /home/mario/pythia/libMyParticles.so: No such file or directory

I'm using ROOT version 5.11.06 which is custom compiled (as I wanted libPythia6.so to be added). Configure options: [oberon] /home/mario/pythia > root -config -b ROOT ./configure options:
QTDIR=/usr/lib/qt-3.1 PYTHIA6=/opt/software/balticgrid/root/lib GLOBUS_LOCATION=/opt/globus --disable-globus

Linux is SLC 3.0.6:
[oberon] /home/mario/pythia > uname -a
Linux oberon.hep.kbfi.ee 2.4.21-37.EL.cernsmp #1 SMP Tue Oct 4 17:03:23 CEST 2005 i686 athlon i386 GNU/Linux [oberon] /home/mario/pythia > cat /etc/redhat-release Scientific Linux CERN Release 3.0.6 (SL)

Mario

On Jul 2, 2006, at 6:15 PM, Axel Naumann wrote:

> 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
>>
>>
>>



Mario Kadastik
CMS experiment
mario.kadastik_at_cern.ch

"Physics is like sex, sure it may give some practical results, but that's not why we do it"

Received on Sun Jul 02 2006 - 17:54:21 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET