I'm having a bit of trouble with the Irrlicht tutorial on this forum. Here is the code:
Code: Select all
#include <irrlicht.h>
#pragma comment(lib, Irrlicht.lib);
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace gui;
int main() {
IrrlichtDevice* device = createDevice(EDT_OPENGL, core::dimension2d<s32>(640,480));
IVideoDriver* video = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
while(device->run() && device) {
video->beginScene(true, true, video::SColor(255,0,0,255));
smgr->drawAll();
video->endScene();
}
}
Code: Select all
1>main.obj : error LNK2028: unresolved token (0A000530) "class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *)" (?createDevice@irr@@$$FYAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)
1>main.obj : error LNK2019: unresolved external symbol "class irr::IrrlichtDevice * __cdecl irr::createDevice(enum irr::video::E_DRIVER_TYPE,class irr::core::dimension2d<int> const &,unsigned int,bool,bool,bool,class irr::IEventReceiver *)" (?createDevice@irr@@$$FYAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@@Z) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ)