Strange C++ problem
Posted: Tue Mar 23, 2004 3:28 pm
Hey all,
I was doing a regular programming,I tried to compile and he pointed to a problem in one of my headers files.I looked for hour trying to figure what's the problem, but I couldn't find it.
Here is the error:
c:\program files\irrlicht\the scout\harvester.h(7) : error C2146: syntax error : missing ';' before identifier 'ISceneNode'
c:\program files\irrlicht\the scout\harvester.h(7) : fatal error C1004: unexpected end of file found
Why do I need to put ";"?
Thanks
I was doing a regular programming,I tried to compile and he pointed to a problem in one of my headers files.I looked for hour trying to figure what's the problem, but I couldn't find it.
Code: Select all
#ifndef __HARVESTER_H_INCLUDED__
#define __HARVESTER_H_INCLUDED__
#include "irrlicht.h"
#include "Cmain.h"
ISceneNode* harvesternode = 0;
IAnimatedMesh* harvester = 0;
void loadharvester()
{
harvester = smgr->getMesh("Data/hunter.3ds");
harvesternode = smgr->addAnimatedMeshSceneNode(harvester);
if (harvesternode)
{
harvesternode->setMaterialFlag(EMF_LIGHTING, false);
harvesternode->setPosition(vector3df(24100,798,-8205));
}
};
#endif
c:\program files\irrlicht\the scout\harvester.h(7) : error C2146: syntax error : missing ';' before identifier 'ISceneNode'
c:\program files\irrlicht\the scout\harvester.h(7) : fatal error C1004: unexpected end of file found
Why do I need to put ";"?
Thanks