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;
}
[C++ Error] quaternion.h(329): E2268 Call to undefined..
Once again, your code has NOTHING to do with the errors... Look at quaternion.h.
________
Dc Medical Marijuana Dispensaries
________
Dc Medical Marijuana Dispensaries
Last edited by disanti on Thu Feb 24, 2011 10:38 am, edited 1 time in total.