From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with "system()" Date: Fri, 24 Jan 1997 19:56:54 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 34 Message-ID: <32E98486.1397@cs.com> References: <5ca9ji$f8j AT urca DOT nce DOT ufrj DOT br> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.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 Antonio Carlos Moreirao de Queiroz wrote: > > Some programs crash: an example is the Borland C IDE. > Other programs do not load drivers that they need and exit: examples are > all the programs compiled in protected mode with Borland Pascal 7.0. > > Is this a bug? The DPMI hosts used by DJGPP and by Borland are not 100% compatible; in fact they are seldom as much as 50% compatible. One of the biggest problems is that Borland likes to run in 16-bit DPMI, which causes all sorts of nasty conflicts with DJGPP's 32-bit DPMI. There is no real solution to this problem, because the DPMI spec specifically states that 16 and 32-bit DPMI are not compatible. In 32-bit DPMI, the DOS4GW extender that many commercial apps use is a semi-crippled DPMI host that has major problems working with cwsdpmi-based programs. The best workaround is to simply stop using the Borland programs. For the IDE, you can substitute RHIDE 1.1 (v2apps/rhide11b.zip), which is a Turbo C-style IDE written specifically for DJGPP. For Pascal, you can download the GPC GNU Pascal compiler (v2gnu/gpc20b.zip). It has some significant differences from Borland Pascal, but for the most part you can work around these. Hope this helps! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Proud owner of what might one | http://www.cs.com/fighteer | | day be a spectacular MUD... | Plan: To make Bill Gates suffer | ---------------------------------------------------------------------