# Trying to compile rootcint dictionary with namespaces

**URL:** <https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562>\
**Category:** ROOT\
**Created:** [July 11, 2012, 2:05pm UTC](https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562 "2012-07-11T14:05:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 11, 2012, 5:01pm UTC](https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562/2 "2012-07-11T17:01:54Z")

</div>

On Linux, try (for MacOS and/or Windows, you need to find someone who can “transform” the commands given below): ``root-config --cxx --cflags` -W -Wall -fPIC -c TestInfo.cxx
rootcint -f TestInfo_Dict.cxx -c -p TestInfo.h TestInfo_LinkDef.h
`root-config --cxx --cflags` -W -Wall -fPIC -c TestInfo_Dict.cxx
`root-config --cxx --cflags` -W -Wall -fPIC -shared -o libTestInfo.so TestInfo.o TestInfo_Dict.o `root-config --glibs`` Note: I didn’t fix the two problems in the “TestInfo.cxx” which are reported by the compiler. I didn’t want to take all the fun away from you!

The easiest way to try it is: `root [0] .L libTestInfo.so
root [1] .Class TestInfo
root [2] .Class TestInfo::TestClass
root [3] .Class std::vector<TestInfo::TestClass>`  
Make sure you read also this thread: [url][Adding a class: hand holding requested](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893/1)  
[TestInfo.h](https://root-forum.cern.ch/uploads/default/original/2X/9/97d0fdab3a26cda3f3bae1a9390f318225c51590.h) (472 Bytes)  
[TestInfo.cxx](https://root-forum.cern.ch/uploads/default/original/2X/e/ead95bd8e9fbd90eaad095286926377eba822f20.cxx) (534 Bytes)  
[TestInfo\_LinkDef.h](https://root-forum.cern.ch/uploads/default/original/2X/4/459172a0000cce26042911ecd1b0e02df5d07ed9.h) (396 Bytes)

---

_[View the full topic](https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562)._
