# Generating a class dictionary with C++ namespaces

**URL:** <https://root-forum.cern.ch/t/generating-a-class-dictionary-with-c-namespaces/22062>\
**Category:** ROOT\
**Created:** [October 17, 2016, 11:15pm UTC](https://root-forum.cern.ch/t/generating-a-class-dictionary-with-c-namespaces/22062 "2016-10-17T23:15:23Z")\
**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:** [October 18, 2016, 5:32am UTC](https://root-forum.cern.ch/t/generating-a-class-dictionary-with-c-namespaces/22062/2 "2016-10-18T05:32:31Z")

</div>

> [@Adding a class: hand holding requested](https://root-forum.cern.ch/t/adding-a-class-hand-holding-requested/13893/2):
>
> On Linux, try (for MacOS and/or Windows, you need to find someone who can “transform” the commands given below): `root-config --cxx --cflags` -fPIC -c MyClass.cxx rootcint -f MyClass\_Dict.cxx -c -p MyClass.hxx MyClass\_LinkDef.h `root-config --cxx --cflags` -fPIC -c MyClass\_Dict.cxx `root-config --cxx --cflags` -fPIC -shared -o libMyClass.so MyClass.o MyClass\_Dict.o The easiest way to try it is: root [0] .L libMyClass.so root [1] .Class MySpace::MyClass1 root [2] .Class std::vector\< MySpace::M…

> [@Trying to compile rootcint dictionary with namespaces](https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562/2):
>
> 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 …

---

_[View the full topic](https://root-forum.cern.ch/t/generating-a-class-dictionary-with-c-namespaces/22062)._
