www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/23/17:06:41

Date: Tue, 24 Sep 1996 08:54:04 +0000
From: Bill Currie <billc AT blackmagic DOT tait DOT co DOT nz>
Subject: Re: Porting ctree to DJGPP
To: Toshiro Viera <toyo AT geocities DOT com>
Cc: djgpp AT delorie DOT com
Message-id: <3247A1AC.7F21@blackmagic.tait.co.nz>
Organization: Tait Electronics NZ
MIME-version: 1.0
References: <32475ECA DOT 2B00 AT geocities DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019