Wretched_Wyx
28-03-2006 12:07:32
Hi,
I finally got everything all setup right, and compiled both nxOgre_d.lib and nxOgre.lib. Took me awhile because I'm kinda fresh when it comes to C++. Anyways, I first ran into a huge load of errors, but then looked on the "having trouble" section of the nxOgre Wiki, and solved this problem by putting nxOgre.h above Ogre.h. That made me happy needless to say. But then, after following the first tutorial, and mimicking the 101.cpp file, I run into 8 errors pertaining to "world" and "scene". I'm using the latest release of nxOgre and Dagon. Here's the createScene() snippet followed by the errors I'm getting:
Help?
I finally got everything all setup right, and compiled both nxOgre_d.lib and nxOgre.lib. Took me awhile because I'm kinda fresh when it comes to C++. Anyways, I first ran into a huge load of errors, but then looked on the "having trouble" section of the nxOgre Wiki, and solved this problem by putting nxOgre.h above Ogre.h. That made me happy needless to say. But then, after following the first tutorial, and mimicking the 101.cpp file, I run into 8 errors pertaining to "world" and "scene". I'm using the latest release of nxOgre and Dagon. Here's the createScene() snippet followed by the errors I'm getting:
void createScene(void)
{
world* mWorld = new world(mRoot, mSceneMgr);
scene* mScene = mWorld->createScene("Main");
mScene->hasGravity();
mScene->hasFloor();
mSceneMgr->setAmbientLight(ColourValue( 0, 0, 0 ));
mSceneMgr->setShadowTechnique(SHADOWTYPE_STENCIL_ADDITIVE);
// Lights
mLight = mSceneMgr->createLight("PointLight1");
mLight->setType(Light::LT_POINT);
mLight->setPosition(Vector3(0,256,0));
mLight->setDiffuseColour(0.9,0.9,0.9);
mLight->setSpecularColour(1.0,1.0,1.0);
}
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(48) : error C2065: 'world' : undeclared identifier
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(48) : error C2065: 'mWorld' : undeclared identifier
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(48) : error C2061: syntax error : identifier 'world'
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(49) : error C2065: 'scene' : undeclared identifier
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(49) : error C2065: 'mScene' : undeclared identifier
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(49) : error C2227: left of '->createScene' must point to class/struct/union/generic type
type is ''unknown-type''
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(50) : error C2227: left of '->hasGravity' must point to class/struct/union/generic type
type is ''unknown-type''
c:\storage\avlabs\avdev\avengine\alpha\source\core.cpp(51) : error C2227: left of '->hasFloor' must point to class/struct/union/generic type
type is ''unknown-type''
Help?