From: jher Newsgroups: comp.os.msdos.djgpp Subject: test ignore Date: Thu, 26 Sep 1996 12:25:12 -0500 Organization: Adhesive Media, Inc. Lines: 26 Message-ID: <324ABC77.77FD@eden.com> References: <32475ECA DOT 2B00 AT geocities DOT com> <3247A1AC DOT 7F21 AT blackmagic DOT tait DOT co DOT nz> Reply-To: jher AT eden DOT com NNTP-Posting-Host: hziulquoigmnzhah.satan-satan-satan.eden.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Bill Currie wrote: > > 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