[C++ Error] quaternion.h(329): E2268 Call to undefined..

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
en972
Posts: 27
Joined: Tue Apr 26, 2005 7:58 pm

[C++ Error] quaternion.h(329): E2268 Call to undefined..

Post by en972 »

Hi. I'm trying ro compile irrlicht with borland. It's going pretty good but I have a few errors. The main ones I want to deal with involve sqrtf. I can't figure out why. I tried adding a declaration to it and though it did get rid of those errors, it made more. Please help!

Errors:

[C++ Error] quaternion.h(153): E2268 Call to undefined function 'sqrtf'
[C++ Error] quaternion.h(329): E2268 Call to undefined function 'sqrtf'

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;
}
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Once again, your code has NOTHING to do with the errors... Look at quaternion.h.
________
Dc Medical Marijuana Dispensaries
Last edited by disanti on Thu Feb 24, 2011 10:38 am, edited 1 time in total.
en972
Posts: 27
Joined: Tue Apr 26, 2005 7:58 pm

Post by en972 »

Hmm..Alright.

Question, did I include the right folders in the right place?
Post Reply