Dear experts,
I would like to read map<string, int>. I found I have to add one line in my source code file:
gROOT->ProcessLine("#include ");
Could I not do like this but add one line in the linkdef.h file?
I tried several times, but fail. It can not be compiled, the error is
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.22.00j/i686-slc5-gcc43-opt/root/bin/rootcint -f rootdict.C -c linkdef.h
Error: link requested for unknown class std::mapstd::string,std::string linkdef.h:18:
The line I add in the linkdef.h is:
#pragma link C++ class std::map<std::string, std::string>;
Could I get some advices?
Best regards,
Zhaoxia