User forums > Using Code::Blocks
Code completion + OGRE
san:
Hmm only now is my compiler complaining about namespaces in the source :)
--- Code: ---SkeletalAnimation.h:22: error: ‘Ogre’ is not a namespace-name
SkeletalAnimation.h:22: error: expected namespace-name before ‘;’ token
--- End code ---
Any clues?
Sensei:
Hello,
I had the same problem concerning the "not a namespace-name" error and I tested a bit.
I do have nearly the same code as given in the first post.
I fixed the "not a namespace-name" problem by writing:
#include <Ogre.h> in a line above the using namespace Ogre; line
Result: Code completition works and the compiler won't give that error message.
BUT:
I tried to split the class definition into a separate file for example TutorialApplication.h and included it a line below my using namespace Ogre; line.
I discovered that if I try to code in the *.h file the code completition won't work.
Why does this happen and how can I fix this.
Thanks in advance
Sensei
Navigation
[0] Message Index
[*] Previous page
Go to full version