Page 1 of 1

Problem Build

Posted: Tue Dec 13, 2005 6:57 pm
by Lokans
Sorry about my english, im Chilean ^^....


Well, i started to seeing the tutorials of irrlicht in the web, and i copy and paste a code, the Hello World code (i Always studies that way, copy pasten, then ready, then create a thing by myself), ok.... i copy the code maded by Andy Spurgeon, and i try to compile it, and the Dev-C++ 4.9.9.2 lauches me this problem....

[Linker error] undefined reference to `_imp___ZN3irr12createDeviceENS_5video13E_DRIVER_TYPEERKNS_4core11dimension2dIiEEjbbbPNS_14IEventReceiverEPKc'


I cant compile ..... any help plz?

Posted: Tue Dec 13, 2005 6:59 pm
by Lokans
i forget something... this is the Code....

// HelloUniverse.cpp
// Include the Irrlicht header
#include "irrlicht.h"

// Irrlicht Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;


int main()
{
IrrlichtDevice *irrDevice = createDevice(EDT_SOFTWARE,
dimension2d<s32>(512, 384),
16,
false,
false,
0);

irrDevice->setWindowCaption(L"Dev-C++ and the Irrlicht Engine!");

IVideoDriver* irrDriver = irrDevice->getVideoDriver();
ISceneManager* irrSceneMgr = irrDevice->getSceneManager();
IGUIEnvironment* irrGUIEnv = irrDevice->getGUIEnvironment();

irrGUIEnv->addStaticText(
L"Hello World! This is the Irrlicht software engine!",
rect<int>(10,10,200,30), true, true, 0, -1);

while(irrDevice->run())
{
irrDriver->beginScene(true, true, SColor(0,192,192,192));

irrSceneMgr->drawAll();
irrGUIEnv->drawAll();

irrDriver->endScene();
}

irrDevice->drop();

return(0);
}





:oops: :oops:

Posted: Tue Dec 13, 2005 7:21 pm
by Conquistador
Are you linking to the Irrlicht static libraries?

Posted: Wed Dec 14, 2005 10:46 am
by bearSoft
User mikeR have written a tutorial on how to set up irr on DEV: http://www.3dcentral.net/tutorial/irr-devcpp/
If it is not updated for 0.14.0 u can try to pm him
There is also the old one (i used) on the off tut page, but thats -old-