RE:[Fwd: [ROOT] set<int> in CINT ?]

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Thu Nov 23 2000 - 15:33:38 MET


Hello Andre,

I am happy to answer your question.

I gues precompiled STL library is not installed in your
machine.  Unfortunately, Cint still can not interpret some
STL containers such as map and set.  So, when you try to
instantiate 'set<int>', cint has a problem.

If you install precommpiled STL library which includes
set<int> this works fine.  I think you can compile it with
ROOT source distribution or pure cint distribution.

Thank you
Masaharu Goto


>Date: Mon, 20 Nov 2000 18:46:36 +0100
>From: x <y@z.ch>
>To: roottalk@pcroot.cern.ch
>Subject: [ROOT] set<int> in CINT ?
>
>Hello,
>
>maybe this is a trivial problem...
>
>I try to use stl sets interactively:
>
>  root [0] #include<set>
>  root [1] set<int> x;
>
>gives
>
>  Error: Too few template arguments FILE:/tmp/fileotV972_cint LINE:1
>
>
>ok...so I tried:
>
>  root [2] set<int, less<int> > x;
>
>
>which however gives:
>
>  Limitation: Function name length overflow
>strlen(reverse_bidirectional_iterator
>  <rb_tree<int,singleton<const  int>,select1st<singleton<const
>int>,int>,less<int>
>  >::iterator,singleton<const int>,singleton<const int>&,long>()>127 
>FILE:_iterator.h LINE:219
>
>
>defining less<int> as a separate class:
>
>
>  root [3] typedef less<int> less_int;
>  root [4] set<int, less_int> x;
>
>Leads to the same error message.. as well as set<Int_t, less<Int_t> > x;
>
>
>Is it possible to use set<int> in a root Macro / in Cint interactively ?
>If so, how ?
>
>
>(I'm using 2.26/00 of November 7, 2000).
>
>
>best regards & thanks for looking at the problem,
>
>
>Andre
>
>
>-- 
>------------------+----------------------------------
>Andre Holzner     | +41 22 76 76750 
>Bureau 32 2-C13   | Building 32     
>CERN              | Office 2-C13    
>CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET