# Namespace in my own library

**URL:** <https://root-forum.cern.ch/t/namespace-in-my-own-library/32365>\
**Category:** ROOT\
**Created:** [January 20, 2019, 6:40am UTC](https://root-forum.cern.ch/t/namespace-in-my-own-library/32365 "2019-01-20T06:40:02Z")\
**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:** [January 20, 2019, 10:10am UTC](https://root-forum.cern.ch/t/namespace-in-my-own-library/32365/2 "2019-01-20T10:10:44Z")

</div>

[Try](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698):

```auto
#if defined( __MAKECINT__ ) || defined( __ROOTCLING__ )

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

#pragma link C++ namespace AGeoUtil;
#pragma link C++ defined_in namespace AGeoUtil;

#pragma link C++ function AGeoUtil::MakePointToPointBBox(const char*, const TVector3&, const TVector3&, Double_t, Double_t, TGeoBBox **, TGeoCombiTrans** );
#pragma link C++ function AGeoUtil::MakePointToPointTube(const char*, const TVector3&, const TVector3&, Double_t, TGeoTube **, TGeoCombiTrans** );

#endif /* defined( __MAKECINT__ ) || defined( __ROOTCLING__ ) */

```

BTW. I think you could completely remove: `NamespaceImp(AGeoUtil)`

---

_[View the full topic](https://root-forum.cern.ch/t/namespace-in-my-own-library/32365)._
