Hi,
I able to reproduce this problem. We are working on a solution. In the meantime, I strongly recommend that you compiled your code (use ACLiC, just do ".x test.C+").
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of OKUMURA, Akira
Sent: Friday, May 27, 2005 12:01 AM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] STL vector
Hello ROOTers,
5.01.01 on Mac OS X 10.3.9 w/ gcc 3.3
and 4.02.00 on RH 7.3 w/ gcc 2.96.
I wrote the attached macro using STL vector.
If I try to run the macro twice,
some errors occur in the second time.
There is not need to use vector.
Array is good enough for this macro.
But I would like to know why the macro does not run properly.
root [0] .x test.C #<=works
root [1] .x test.C #<=does not work
Warning: template pair duplicate definition
FILE:/usr/local/root/cint/stl/_pair.h LINE:21
Warning: template vector duplicate definition
FILE:/usr/local/root/cint/stl/_vector.h LINE:35
Error: Too few template arguments
FILE:/usr/local/root/cint/stl/_vector.h LINE:181
Error: template argument for T missing
FILE:/usr/local/root/cint/stl/_vector.h LINE:182
Error: template argument for T missing
FILE:/usr/local/root/cint/stl/_vector.h LINE:182
*** Interpreter error recovered ***
Sincerely,
OKUMURA, Akira oxon_at_icrr.u-tokyo.ac.jp
Institute for Cosmic Ray Research, University of Tokyo
5-1-5 Kashiwanoha Kashiwa Chiba 277-8582 Japan
Tel/Fax : +81 4-7136-3153
Skype : okumura.akira
Received on Wed Jun 01 2005 - 22:16:27 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:09 MET