Problem with map

Hi,

I got a Problem with map. I use ROOT in Cygwin, my OS is WinXP, and have installed the new version ROOT from CVS. But I got Error, when I try to use std::map. Anyone konw about that? Thanks.

root [0] #include
root [1] #include
root [2] #include
root [3] std::map<std::string, int, std::lessstd::string > age;
root [4] age[“Fred”] = 42;
Error: Can’t call map<string,int,less,allocator<pair<const string,int> > >::operator in current scope FILE:(tmpfile) LINE:1
Possible candidates are…
filename line:size busy function type and name (in map<string,int,less,allocator<pair<const string,int> > >)
Error: improper lvalue FILE:(tmpfile) LINE:1
*** Interpreter error recovered ***

Hi Eric,
oops, forgot about your post. Build the cintdlls:

It will hang after building cint/stl/map.dll (I believe Philippe has fixed that for the current cvs version, didn’t test it yet). But you’ll get map.dll - which is what you need. Then do

root [0] .L $ROOTSYS/cint/stl/map.dll root [1] std::map<string,int> age root [2] age["Fred"]=42 root [3] age["Fred"] (int)42
Axel.