> 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?
"Physics is like sex, sure it may give some practical results, but that's not why we do it"
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET