# 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:** 4

<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:** [July 20, 2012, 10:25am UTC](https://root-forum.cern.ch/t/problem-in-getting-the-vector-vector-string-branch/14608/4 "2012-07-20T10:25:30Z")

</div>

Try: `root [0] .x trial.cxx` and/or: `root [0] .x trial.cxx++` and/or: ``root-config --cxx --cflags` -O2 -W -Wall -o trial trial.cxx `root-config --glibs`
./trial` and then: `root [0] TFile f("trial.root", "READ");
root [1] tree->Print();`  
See also: [url][Storing 2D vector [--\> vector\<vector\<...\> \>] into a TTree](https://root-forum.cern.ch/t/storing-2d-vector-vector-vector-into-a-ttree/14331/2)

P.S. If the above compilation command does not work for you, try: `g++ `root-config --cflags` -O2 -W -Wall -o trial trial.cxx `root-config --glibs`
./trial`  
[trial.cxx](https://root-forum.cern.ch/uploads/default/original/2X/2/223ccec9bd562b71868b3fbfee854d68419498ce.cxx) (4.79 KB)

---

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