# Adding a class: hand holding requested

**URL:** <https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893>\
**Category:** ROOT\
**Created:** [February 29, 2012, 4:39pm UTC](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893 "2012-02-29T16:39:45Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [March 1, 2012, 10:17am UTC](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893/10 "2012-03-01T10:17:15Z")

</div>

I’d just change “.cxx” into “.cc” directly here … and learn the “-p” flag … you will often need it …  
rootcint -f [dictionary.cc](http://dictionary.cc) -c -p TestClass.hh Root\_LinkDef.h

Also, as you plan to use “std:: vector”, maybe it would be good to:  
#include   
in your “TestClass.hh” file.

One more thing. If you ever use “ClassDef”, remember that it must be the last line in your class definition AND it must be PUBLIC:

`class MyClass {
public:
  // something
protected:
  // something else
private:
  // yet something else
public:
  ClassDef(MyClass, 1); // My Class title
};`

---

_[View the full topic](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893)._
