i'm about to explode...soon. It's my 100000000000th aproach using VC++2005 Express Ed. with no luck.
Whenever being inside a loop, VC is complaining about not knowing some Variables defined ONE line above
Example:
Code: Select all
...
IAnimatedMesh* mesh = 0;
ISceneNode* node = 0;
mesh = pCore->getSceneMgr()->getMesh(pFileName);
if (mesh)
node = pCore->getSceneMgr()->addOctTreeSceneNode(mesh->getMesh(0));
node->setPosition(pos);
....
..\..\entity.cpp(29) : error C2065: 'node' : undeclared identifier
Maybe I'm blinded by the light or something, but i do NOT see a SINGLE problem with it. It's just a little pointer, pointing to nothing...that's it.
The "funny" thing is all the code is working like a charm when using Codeblocks with gcc or even vc2003 Toolkit. BUT i want to use VC2005 cause i like the IDE...it's so comfortable
I'd be nice if anybody could enlighten me