# TTree with a vector\<user defined class\>

**URL:** <https://root-forum.cern.ch/t/ttree-with-a-vector-user-defined-class/17689>\
**Category:** ROOT\
**Created:** [May 28, 2014, 2:19pm UTC](https://root-forum.cern.ch/t/ttree-with-a-vector-user-defined-class/17689 "2014-05-28T14:19:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 28, 2014, 2:37pm UTC](https://root-forum.cern.ch/t/ttree-with-a-vector-user-defined-class/17689/2 "2014-05-28T14:37:13Z")

</div>

Maybe you’re missing a proper: `$(DDIR)/Dictionnary.cpp: $(HEADERS) LinkDef.h` where the “LinkDef.h” file is something like: [code]#ifdef **MAKECINT**

#pragma link off all typedefs;  
#pragma link off all globals;  
#pragma link off all functions;  
#pragma link off all classes;

#pragma link C++ nestedclass;  
#pragma link C++ nestedtypedef;

#pragma link C++ class Point+;  
#pragma link C++ class Particle+;  
#pragma link C++ class std::vector+;

#endif /\* **MAKECINT** \*/[/code]  
See also [url][Simple way to create and merge shared libraries?](https://root-forum.cern.ch/t/simple-way-to-create-and-merge-shared-libraries/11652/6) for some additional neat Philippe’s notes concerning “ClassDef” / “ClassImp” / “TObject inheritance”.

---

_[View the full topic](https://root-forum.cern.ch/t/ttree-with-a-vector-user-defined-class/17689)._
