Mail Archives: djgpp/1996/09/23/17:06:41
Toshiro Viera wrote:
>
> Does anybody use Faircom's ctree with DJGPP?
>
> I've built the library using DJGPP v2 without errors, but when I try to
> run a very simple program (that compiles OK), it doesn't work.
>
> The program try to create a database, but fails. It returns a DCRAT_ERR
> (ctree specific error) and sets 'errno' to 22. The same program compiled
> with Borland C++ 4.5 (16 bit) runs without errors.
>
> I suppose I've made a mistake when I built the library with DJGPP, but I
> can't imagine where is the mistake. If you wish, I can post the source
> code of the test program, or the makefile I use to build the library.
I haven't even seen it, but my siggestion would be to check for `int's and 'short's in
the structures that are written to the database. If everything is consisten, it won't matter,
but if one place is defining its variables as ints and another is expecting shorts (or vice
versa), you will have problems (I ran into this porting borlands turbo vision help system, they
defined most things as shorts, but in a few critical places were using ints... all hell broke
loose).
Hope this helps
Bill
- Raw text -