Game Programming and Development Tools

Irrlicht compile problem – en972

en972

Member

Posts: 562
From: NOT TELLING!
Registered: 08-27-2004
Hi! I'm working on compileing irrlicht with borland. And so I got some errors. Now it obviously found the irrlicht.h header fine. It also find the lib directory. So I am not asking you to solve all my errors. But It would be nice if you could point out a few.

My errors are:

[C++ Error] irrArray.h(131): E2211 Inline assembly not allowed in inline and template functions
[C++ Error] quaternion.h(153): E2268 Call to undefined function 'sqrtf'
[C++ Error] quaternion.h(329): E2268 Call to undefined function 'sqrtf'
[C++ Error] irrlicht.h(287): E2108 Improper use of typedef 'video::E_DRIVER_TYPE'
[C++ Error] irrlicht.h(287): E2293 ) expected
[C++ Error] Unit1.cpp(16): E2314 Call of nonfunction


My CODE:

#include <irrlicht.h>

using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

#pragma comment(lib, "Irrlicht.lib")

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

device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");

IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();

guienv->addStaticText(L"Hello World! This is the Irrlicht Software engine!",
rect<int>(10,10,200,22), true);

IAnimatedMesh* mesh = smgr->getMesh("../../media/sydney.md2");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode( mesh );

if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
node->setFrameLoop(0, 310);
node->setMaterialTexture( 0, driver->getTexture("../../media/sydney.bmp") );
}

smgr->addCameraSceneNode(0, vector3df(0,30,-40), vector3df(0,5,0));

while(device->run())
{
driver->beginScene(true, true, SColor(0,200,200,200));

smgr->drawAll();
guienv->drawAll();

driver->endScene();
}

device->drop();
return 0;
}

------------------
Oh you program? Awsome! I try to get in a little....I spend most of my time debugging.

[This message has been edited by en972 (edited August 12, 2005).]