Date: Thu, 8 Oct 1998 14:25:30 +0100 (BST) From: George Foot To: djgpp AT delorie DOT com Subject: Re: RSXNTDJ & "go32.h", "dpmi.h" header functions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Thu, 8 Oct 1998, Cyril DREYFUS wrote: > I'm running GCC 2.81 with RSXNTDJ and trying to compil > Windows programs that calls DOS interrupts. > > Although i'm not shure it is the best approach, for that > purpose i used "go32" and "dpmi" functions such as > "allocate_dos_memory" and "simulate_interrupt". That's not allowed in Windows. When in Rome... > I have no trouble compiling and running this under regular > DOS gcc, but the windows build won't fly (won't build due to > unresolve ref if the original ld.exe is used, crashes if the > patch ld.exe is used). > > I'm pretty desperate for any help, many thanks in advance. Don't use any of the djgpp header files. RSXNTDJ uses its own C library, so you should use its header files, not djgpp's. This is one reason why I feel that the standard RSXNTDJ installation instructions are bad. IMHO you should either have djgpp's include directories and library paths set or have RSXNTDJ's set. Effectively RSXNTDJ is different to djgpp. It's just a new C library which takes advantage of djgpp's versions of gcc and the binutils. When I was playing around with new ways of packaging RSXNTDJ I found that if you only want to make Windows or RSX programs you don't need the djdev package at all -- you just need gcc and binutils. -- george DOT foot AT merton DOT oxford DOT ac DOT uk xu do tavla fo la lojban -- http://xiron.pc.helsinki.fi/lojban/lojban.html