# Error in \<TTree::Branch\> with a vector of vectors

**URL:** <https://root-forum.cern.ch/t/error-in-ttree-branch-with-a-vector-of-vectors/14883>\
**Category:** ROOT\
**Created:** [September 7, 2012, 2:03am UTC](https://root-forum.cern.ch/t/error-in-ttree-branch-with-a-vector-of-vectors/14883 "2012-09-07T02:03:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [September 7, 2012, 5:56am UTC](https://root-forum.cern.ch/t/error-in-ttree-branch-with-a-vector-of-vectors/14883/2 "2012-09-07T05:56:35Z")

</div>

For “std::vector\<std::vector \>” see [url][Storing 2D vector [--\> vector\<vector\<...\> \>] into a TTree](https://root-forum.cern.ch/t/storing-2d-vector-vector-vector-into-a-ttree/14331/1)  
For “std::vector\<std::vectorstd::string \>” see [url][Problem in getting the vector \< vector \<string\> \> branch](https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608/1)

BTW. The “#pragma link C++” is irrelevant for the compiler when you compile your class’es source code. You would need to call “rootcint” in order to build the dictionary for your class. A separate additional source code file would be created which you would need to compile and add that additional object file to the linker command line.

---

_[View the full topic](https://root-forum.cern.ch/t/error-in-ttree-branch-with-a-vector-of-vectors/14883)._
