# Problem in getting the vector \< vector \<string\> \> branch

**URL:** <https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608>\
**Category:** ROOT\
**Created:** [July 19, 2012, 8:43am UTC](https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608 "2012-07-19T08:43:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sandhya](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sandhya/32/13972_2.png) [@sandhya](https://root-forum.cern.ch/u/sandhya)\
**Post date:** [July 19, 2012, 8:43am UTC](https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608/1 "2012-07-19T08:43:09Z")

</div>

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

---

_[View the full topic](https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608)._
