Borland Turbo C++ and 1.3

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
mistercrabb
Posts: 12
Joined: Sat Feb 17, 2007 9:26 pm

Borland Turbo C++ and 1.3

Post by mistercrabb »

Hi everyone, some of you might remember me from a post i made at the beginning of the year, trying to get irrlicht to work for my old borland compiler. I eventually fixed it by upgrading to Turbo C++. Ive recently formatted my hard drive on my new computer and installed 1.3 and Turbo C++, and i cant seem to get it to work...

Im trying to compile the hello world thingy.
The errors are:
1.)matrix4.h: call to undefined functions sinf and cosf

2.) quaternion.h: Could not find a match for 'quaternion::operator =(quaternion)'

3.)[C++ Fatal Error] IAnimatedMeshMD3.h(82): F1003 Error directive: compiler not supported

Hey.. compiler not supported? 1.2 worked.. :(
error 1 could be fixed by:
#define cosf (float)cos
#define sinf (float)sin

How do i fix 2 and 3?
And no, i refuse to touch MSVC++ with a 10 foot pole. Especially the express edition.

Oh, and are there any other problems im likely to find?

EDIT: I also got a load of 'unreachable code' warnings.
lester
Posts: 86
Joined: Mon Jan 29, 2007 3:33 pm

Post by lester »

omg is it still alive?

as far as I know it produces 16-bit code, where some functions which are not fitting to memory should be marked as far or near. Why not to use a newer compiler?
mistercrabb
Posts: 12
Joined: Sat Feb 17, 2007 9:26 pm

Post by mistercrabb »

it uses bcc32 as the compiler, i assume that means its 32-bit?
And its not that old.. its the 2006 IDE edition..

I'd like to use a newer compiler, but they all suck. When i try new compilers i always end up downloading about 1gb of different files, only to discover that it throws errors or doesnt have features that it should have.

Is there some secret way to download something that works straight off?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try the latest SVN version of Irrlicht. It contains some fixes for borland compilers. Including a redefinition of the sinf etc. functions and some ifdef's to use the proper symbols.
mistercrabb
Posts: 12
Joined: Sat Feb 17, 2007 9:26 pm

Post by mistercrabb »

Ok, where can i find that?
Perceval
Posts: 158
Joined: Tue May 30, 2006 2:42 pm

Post by Perceval »

lester
Posts: 86
Joined: Mon Jan 29, 2007 3:33 pm

Post by lester »

> When i try new compilers i always end up downloading about 1gb of different files, only to discover that it throws errors or doesnt have features that it should have.

Use da gcc, Luke! :D
mistercrabb
Posts: 12
Joined: Sat Feb 17, 2007 9:26 pm

Post by mistercrabb »

Okay.. ive got the latest SVN thingy. Ive updated it, and it seems to have solved most of the problems. However, i just get one error:
[C++ Error] irrlicht.h(279): E2108 Improper use of typedef 'video::E_DRIVER_TYPE'

How to fix it?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

This error also stopped me from building a complete library, yet. And the SoftwareDriver2, which seems to have some namespace probelms with Borland compilers.
mistercrabb
Posts: 12
Joined: Sat Feb 17, 2007 9:26 pm

Post by mistercrabb »

Ah.. thats that problem solved..
I quote from another topic:
Locate this line:

const core::dimension2d<s32>& windowSize = core::dimension2d<s32>(640,480),

Change to this:

const core::dimension2d<s32>& windowSize = (core::dimension2d<s32>(640,480)),
I just did it in the vague hope that it would work, and it did. Yay :)
Thanks quibbler, whoever you are for writing that :)

EDIT: thats a fix for irrlicht.h, if you're wondering.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, thanks for that one, I would not hav tried it. It's just silly syntax. Anyway, I also added the namespaces in SoftwareDriver2 and now the dll compiles. However, I'd have to learn how to create a proper .lib file and then build some example. Anyone can help here?
Post Reply