# Compiling own classes with ACLiC gives error

**URL:** <https://root-forum.cern.ch/t/compiling-own-classes-with-aclic-gives-error/21634>\
**Category:** ROOT\
**Created:** [August 1, 2016, 4:10pm UTC](https://root-forum.cern.ch/t/compiling-own-classes-with-aclic-gives-error/21634 "2016-08-01T16:10:14Z")\
**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:** [August 2, 2016, 11:12am UTC](https://root-forum.cern.ch/t/compiling-own-classes-with-aclic-gives-error/21634/10 "2016-08-02T11:12:44Z")

</div>

1. You need to get rid of circular dependencies in your “#include” files.
2. “ClassDef” must always be the “very last” and “public” (see also [root.cern.ch/phpBB3/viewtopic.ph … 767#p51767]([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”).
3. You should create dictionary entries for additional containers that you define.  
[NoClassProblem.tar.gz](https://root-forum.cern.ch/uploads/default/original/2X/4/4973ae52990d51ffac5ab0079267d5b8cd01fe69.gz) (2.31 KB)

---

_[View the full topic](https://root-forum.cern.ch/t/compiling-own-classes-with-aclic-gives-error/21634)._
