# 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:** 5

<div class="post-metadata">

**Author:** ![oxon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oxon/32/12641_2.png) [@oxon](https://root-forum.cern.ch/u/oxon)\
**Post date:** [January 20, 2019, 3:45pm UTC](https://root-forum.cern.ch/t/namespace-in-my-own-library/32365/5 "2019-01-20T15:45:07Z")

</div>

Now I understand that this is not due to my `LinkDef.h` but due to this automatic loading issue.

> [@"error: unknown type name" in](https://root-forum.cern.ch/t/error-unknown-type-name-in/31980):
>
> ROOT Version: 6.14/06 Platform: macOS 10.14.1 and CentOS 7 Compiler: Clang or GCC When I execute a very simple script which uses one of the classes of my own library, I get the following error in the second execution time. $ root root [0] .x test.C Info in \<TGeoManager::TGeoManager\>: Geometry manager, manager created root [1] .x test.C In file included from input\_line\_27:1: /Users/oxon/ROBAST/test.C:4:3: error: unknown type name 'AOpticsManager' AOpticsManager\* manager = new AOpticsManag…

To make the tab completion works and to allow the user to use the methods inside the user’s namespace, the header file needs to be `#include`d first.

```auto
root [0] gSystem->Load("libROBAST")

root [2] #include "AGeoUtil.h"
root [3] AGeoUtil::

```

works fine.

@axel, would you tell me the issue page of this ROOT-6 loading issue if it exists?

---

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