Irrlicht w/ BorlandBuilder4

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
ThomasGuy

Irrlicht w/ BorlandBuilder4

Post by ThomasGuy »

I am trying to use irrlicht in borland builder 4 and am having two problems.

First, I cannot get it to compile. I set my project options to include the gcc (is that right, or do i need a borland compilation?...) lib and include folders as places to look for files. I created a new project and entered the following:

#include <irrlicht.h>
#pragma comment(lib, "Irrlicht.a")
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

...near the top to include irrlicht but when i tried to be sure it would compile it said:

[C++ Warning] SColor.h(17): W8071 Conversion may lose significant digits.
[C++ Warning] SColor.h(25): W8071 Conversion may lose significant digits.
[C++ Warning] SColor.h(75): W8084 Suggest parentheses to clarify precedence.
[C++ Warning] SColor.h(82): W8084 Suggest parentheses to clarify precedence.
[C++ Warning] SColor.h(134): W8084 Suggest parentheses to clarify precedence.
[C++ Warning] SColor.h(139): W8084 Suggest parentheses to clarify precedence.
[C++ Warning] SColor.h(149): W8084 Suggest parentheses to clarify precedence.
[C++ Warning] SColor.h(161): W8084 Suggest parentheses to clarify precedence.
[C++ Error] quaternion.h(153): E2268 Call to undefined function 'sqrtf'.
[C++ Error] quaternion.h(329): E2268 Call to undefined function 'sqrtf'.



Second: I would like to use irrlicht inside of my window but am just starting out with irrlicht and dont know how to do this inside a borland TForm object. I read the tutorial on how to use irrlicht with a win32 window but unless i am mistaken, this is not the same as a TForm inside borland. I have only been programming in C++ for 2-3 years so excuse me if my questions are simple.

Thanks so much (ahead of time)!!!

-Thomas

P.S. I am very exited about finding irrlicht! It looks very promising for my project!
dawntraveler
Posts: 6
Joined: Sat Mar 04, 2006 3:32 am

Post by dawntraveler »

Well, I just finished the code modification and compiliation on C++Bulder4 after 3-day's work (with only DX8 support)...
dawntraveler
Posts: 6
Joined: Sat Mar 04, 2006 3:32 am

Post by dawntraveler »

sqrtf is float version of sqrt (), just define sqrtf=sqrt in compile options, and so are tanf=tan, atanf=atan,.... etc

There is a data member "Handle" in TForm, (its type is HWND) it is the window handle, you can use the handle for using any Win32 SDK functions in TForm, or send it to Irrlicht.
Guest

Post by Guest »

Oh, Right. I remember Handle. Im sure I can figure that part out!

Im still a little confused. Do I need to change any code that i've downloaded? Where do I tell the compiler to treat sqrtf as sqrt? I didn't see an option under Project->Options.... Should I move any of the .h .a or .dll files from my borland directory to my project folder?

Thanks again for your help.
ThomasGuy

Post by ThomasGuy »

Oh, Yeah. That last post was me... -Thomas
dawntraveler
Posts: 6
Joined: Sat Mar 04, 2006 3:32 am

Post by dawntraveler »

Hi Thomas

you can find etcaptor's information:

http://etcaptor.f2g.net/Tutorials/Irrli ... rlicht.htm
ThomasGuy

Post by ThomasGuy »

Great, Thanks so much!
Post Reply