# 'TGenericClassInfo’ does not name a type

**URL:** <https://root-forum.cern.ch/t/tgenericclassinfo-does-not-name-a-type/15683>\
**Category:** ROOT\
**Created:** [February 21, 2013, 10:33am UTC](https://root-forum.cern.ch/t/tgenericclassinfo-does-not-name-a-type/15683 "2013-02-21T10:33:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthaeus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/8baadc/32.png) [@Matthaeus](https://root-forum.cern.ch/u/Matthaeus)\
**Post date:** [February 21, 2013, 10:33am UTC](https://root-forum.cern.ch/t/tgenericclassinfo-does-not-name-a-type/15683/1 "2013-02-21T10:33:52Z")

</div>

Hi, I’m trying to compile a class inside a namespace with ClassDef and ClassImp, but I get these two errors:

(note that the Dict compiles correctly, line 8 contains just ClassImp)

```auto
g++ -c -Wall `root-config --cflags` -Ireadimages/include/ -Igui/include -Ilib/dict -I. -o lib/main_frameDict.o lib/dict/main_frameDict.cpp
g++ -c -Wall `root-config --cflags` -Ireadimages/include/ -Igui/include -Ilib/dict -I. -o lib/main_frame.o gui/src/main_frame.cpp 
gui/src/main_frame.cpp:8:1: error: ‘TGenericClassInfo’ does not name a type
gui/src/main_frame.cpp:8:1: error: ‘GenerateInitInstance’ was not declared in this scope
make: *** [lib/main_frame.o] Error 1
```

The solution proposed in [Trying to compile rootcint dictionary with namespaces](https://root-forum.cern.ch/t/trying-to-compile-rootcint-dictionary-with-namespaces/14562/1) isn’t working for me ☹
