'TGenericClassInfo’ does not name a type

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)

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 isn’t working for me :frowning: