A
aaragon
Hello everyone,
I have this problem that is driving me crazy! I have a typedef for a
singleton object in a file "fileA.h", then I try to use that object in
"fileB.h" and then the compiler says that the object has not been
declared! It doesn't matter what I do, the problem won't go away. I
#include the header file where the typedef is declared, I tried
forward declaration, it just won't go away. The typedef in filaA.h
looks like this:
Then, I try to use this in fileB.h:
...
NodeManager:rintNodes();
Any ideas on how to solve this? I can use NodeManager inside fileA.h
and inside main.cxx. I've been compiling only main.cxx so far.
a²
I have this problem that is driving me crazy! I have a typedef for a
singleton object in a file "fileA.h", then I try to use that object in
"fileB.h" and then the compiler says that the object has not been
declared! It doesn't matter what I do, the problem won't go away. I
#include the header file where the typedef is declared, I tried
forward declaration, it just won't go away. The typedef in filaA.h
looks like this:
typedef Loki::SingletonHolder said:NodeManager;
Then, I try to use this in fileB.h:
...
NodeManager:rintNodes();
Any ideas on how to solve this? I can use NodeManager inside fileA.h
and inside main.cxx. I've been compiling only main.cxx so far.
a²