I downloaded the last release of irrlicht to test some things, because i think i'll use it for my project.
So, i created a simple console project with VS2005 and i set the include directory, the lib directory and add Irrlicht.lib as additional lib.
Then i compile this code:(the code is from the example in the first page of the online documentation)
Code: Select all
#include <irrlicht.h>
using namespace irr;
int main()
{
// start up the engine
IrrlichtDevice *device = createDevice(video::EDT_DIRECTX8,
core::dimension2d<s32>(640,480));
video::IVideoDriver* driver = device->getVideoDriver();
scene::ISceneManager* scenemgr = device->getSceneManager();
device->setWindowCaption(L"Hello World!");
// draw everything
while(device->run() && driver)
{
driver->beginScene(true, true, video::SColor(255,0,0,255));
scenemgr->drawAll();
driver->endScene();
}
// delete device
device->drop();
return 0;
}
Code: Select all
error LNK2019: unresolved external symbol __imp_?createDevice@irr@@YAPAVIrrlichtDevice@1@W4E_DRIVER_TYPE@video@1@ABV?$dimension2d@H@core@1@I_N22PAVIEventReceiver@1@PB_W@Z referenced in function _main Main.obj
So i think maybe this function is not exported or anything like that, or maybe i forgot to do something...
Can someone help me?
Thanks!
(Sorry for my poor english (i'm french))