Dear Rooters,
I am trying to make a branch in a tree with vector<vectorstd::sting >.
I have a similar code working for vector<vector > and vector<vector >.
I just added a line to create the dictionary for this.
#ifdef MAKECINT
#pragma link C++ class std::vector<std::vector >+;
#pragma link C++ class std::vector<std::vectorstd::string >+;
#pragma link C++ class std::vector<std::vector >+;
#pragma link C++ class std::vector<std::vector >+;
#pragma extra_include “std::vector”;
#endif
It compiles fine but when I try to run the code but it tells me the pointer to the “branch_name” is not known by root. This happens when I am trying to filling the branch itself.
I also tried to generate the dictionary using
gInterpreter->GenerateDictionary(“vector<vectorstd::string >”,“string;vector”);
I still see the problem. This problem did not come when I filled the vector of vector of floats/ints. And there,
I generated dictionary using MAKECINT while compiling like I pasted above. And when I had to read the info after filling the branches, I created one using gInterpreter. Here, situation seems to be different. Could someone please help me about what I should do?
Thanks & Regards
Sandhya