Hi Matthew, You should compile you map (rather than trying to use the interpreted version). The message means that there are already some map instance that has been compiled. Do: // MapLoader.C #include <map> #pragma link C++ class map<long,double,less<long> >; // End of MapLoader.C root [] .L MapLoader.C+ Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Matthew Wood Sent: Tuesday, July 29, 2003 8:16 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] Problem with stl map Hi. I am having trouble using the STL map class and I was hoping someone could give me an example that works. I tried the same code in a C++ program and it worked fine. Here is what I am trying ( I am using ROOT 3.05/05 ): root [0] #include <map> root [1]test; Limitation: Can't instantiate precompiled template map<long,double,less<long> > FILE:(tmpfile) LINE:1 *** Interpreter error recovered *** Thank you for your help. Matthew Wood ################################################################# ################################################################# ################################################################# ##### ##### ##### ################################################################# ################################################################# #################################################################
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET