# Vector in Branch

**URL:** <https://root-forum.cern.ch/t/vector-in-branch/12796>\
**Category:** ROOT\
**Created:** [July 20, 2011, 4:09pm UTC](https://root-forum.cern.ch/t/vector-in-branch/12796 "2011-07-20T16:09:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [July 20, 2011, 4:22pm UTC](https://root-forum.cern.ch/t/vector-in-branch/12796/2 "2011-07-20T16:22:30Z")

</div>

Hi,

You need to load the dictionary for vector. Add (literally):`gROOT->ProcessLine("#include <vector>");` to your code _before_ attempting to create the branches.

Cheers,  
Philippe.

---

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