Hello!
When compiling device->setEventReceiver(&receiver);
I get the following error;
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall irr::IrrlichtDevice::setEventReceiver(class irr::IEventReceiver *)" (?setEventReceiver@IrrlichtDevice@irr@@QAEXPAVIEventReceiver@2@@Z)
I'm sure I'm using the new 0.4.1 lib's and include's, so I really can't figure out this problem...
Any help appreciated...
Thanks in advance!
//ILDG
unresolved external
not wverytinh works as it should...
ok... maybe I was too quick to post my last, reply... you see, there's still an error... but now it's a runtime error. When starting my "game", windows says it has executed an illegal operation and quits it..
Why? Here's my code: ( I know it's somewhere here the error is cause when I comment out theses lines it works)
class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (camera)
{
return camera->OnEvent(event);
}
return false;
}
};
int main()
{
MyEventReceiver receiver;
device->setEventReceiver(&receiver);
and device is declared as this:
IrrlichtDevice *device = createDevice(video::DT_DIRECTX8, core::dimension2d<s32>(640, 480), 16, false, false, NULL);
So, Why is this problem?
Thanks in advance!
//ILDG
Why? Here's my code: ( I know it's somewhere here the error is cause when I comment out theses lines it works)
class MyEventReceiver : public IEventReceiver
{
public:
virtual bool OnEvent(SEvent event)
{
if (camera)
{
return camera->OnEvent(event);
}
return false;
}
};
int main()
{
MyEventReceiver receiver;
device->setEventReceiver(&receiver);
and device is declared as this:
IrrlichtDevice *device = createDevice(video::DT_DIRECTX8, core::dimension2d<s32>(640, 480), 16, false, false, NULL);
So, Why is this problem?
Thanks in advance!
//ILDG