but for some reason i get errors like :
Main.cpp
Code: Select all
#include "manager.h"
int main(int argc, char** argv)
{
while(device->run())
{
driver->beginScene(true, true, SColor(0,200,200,200));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
Code: Select all
#ifndef MAN_H
#define MAN_H
#include <irrlicht.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
IrrlichtDevice *device =
createDevice(EDT_OPENGL, dimension2d<s32>(640, 480), 32,
false, false, false, 0);
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
#endifCode: Select all
#include "manager.h"
ISceneNode* mar=smgr->addSphereSceneNode();and when i remove player.cpp everything runs fine...obj\Debug\src\main.o||In function `_ZN3irr4core12irrAllocatorIcE12internal_newEj':|
obj\Debug\src\sars.o:C:\Work\Engines\irrlicht-1.4.2\include\irrAllocator.h|29|first defined here|
obj\Debug\src\main.o||In function `_ZN3irr4core12irrAllocatorIcE12internal_newEj':|
obj\Debug\src\sars.o:C:\Work\Engines\irrlicht-1.4.2\include\irrAllocator.h|29|first defined here|
obj\Debug\src\main.o||In function `_ZN3irr4core12irrAllocatorIcE12internal_newEj':|
obj\Debug\src\sars.o:C:\Work\Engines\irrlicht-1.4.2\include\irrAllocator.h|29|first defined here|
obj\Debug\src\main.o||In function `_ZN3irr4core12irrAllocatorIcE12internal_newEj':|
obj\Debug\src\sars.o:C:\Work\Engines\irrlicht-1.4.2\include\irrAllocator.h|29|first defined here|
||=== Build finished: 4 errors, 0 warnings ===|
Do you guys know what the problem is?Thanks.

