Re: new classes

From: Mario Kadastik <>
Date: Sun, 2 Jul 2006 17:36:39 +0300

> 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 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/./
root [1]

and the file appears and is usable.

root [0] gSystem->CompileMacro("particles.cpp","","libMyParticles") Info in <TUnixSystem::ACLiC>: creating shared library /home/mario/ pythia/
root [1]

in this case, the file isn't actually created (exit code 1 as I understand). Ideas?

Mario Kadastik
CMS experiment

"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 - 16:36:49 MEST

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