irrString.h issue

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Quibbler
Posts: 25
Joined: Tue Feb 14, 2006 5:34 pm

irrString.h issue

Post by Quibbler »

I have a problem:

I use borland turbo c++ 2006 and have successfully built my own .dll, but when I run the examples, I get question marks in the caption of the windows.

Now, I believe this problem is due to the fact that I had to modify irrString.h to be able to build my .dll.

Before the modifications I got two very interesting compiler errors:

Size of the type 'B' is unknown or zero

and

Internal code generator error


Anyone else had these problems when building with Borland's compiler?
roxaz
Posts: 575
Joined: Tue Jan 23, 2007 8:35 pm
Location: LT

Post by roxaz »

wrong section. go to newbies help forum
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Sounds like a problem with wchar_t. Maybe we need some extra preprocessor code for borland users in irrTypes.h?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

In IrrTypes add something like this:

Code: Select all

//! Define for swprintf because this method does not match the ISO C standard
//! on Windows platforms, but it does on all other ones.
#ifndef __BCPLUSPLUS__    // add by etcaptor for BCB compatibility
#define   swprintf   _snwprintf
#endif 
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Since the Borland compiler should also enable the WINDOWS_API setting this define is already made by Irrlicht.
etcaptor
Posts: 871
Joined: Fri Apr 09, 2004 10:32 pm
Location: Valhalla
Contact:

Post by etcaptor »

You guys made a great work for Borland compatibility. there is almost nothing to do. I made only several changes for myself. Thanks!
ImageImage
Site development -Rock and metal online
--- etcaptor.com ------freenetlife.com
Post Reply