Error when running macro twice - compile macro?

From: Ida Häggström <ida.haggstrom_at_radfys.umu.se>
Date: Mon, 31 May 2010 11:17:12 +0200


Hi Rooters!
I'm running a C-macro in ROOT which works without any problems.

>> root -q -d myMacro.c\(input1\)
yields:



Processing myMacro.C(input1)...
...stuff...
Finished!

When I try to run it twice I get some warnings however, and running it three times I get segmentation violations. I found a similar post from 2005 ( http://root.cern.ch/root/roottalk/roottalk05/1381.html) where it was suggested to compile the macros. Is this a good idea, and how would I do that? Thanks in advance!
Ida

>> root -q -d myMacro.c\(input1\) myMacro.c\(input2\) yields:



Processing myMacro.C(input1)...
...stuff...
Finished!

Processing myMacro.C(input2)...
Warning: template pair duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_pair.h:31: Warning: template reverse_iterator duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_iterator.h:269: Warning: template vector duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_vector.h:44: ...stuff...
Finished!



>> root -q -d myMacro.c\(input1\) myMacro.c\(input2\) myMacro.c\(input3\) yields:

Processing myMacro.C(input1)...
...stuff...
Finished!

Processing myMacro.C(input2)...
Warning: template pair duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_pair.h:31: Warning: template reverse_iterator duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_iterator.h:269: Warning: template vector duplicate definition /home/ida/GATE/ROOT_v5.24/root/lib/root/cint/cint/stl/_vector.h:44: ...stuff...
Finished!

Processing myMacro.C(input3)...

Received on Mon May 31 2010 - 11:17:18 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 02 2010 - 17:50:01 CEST