Date: Tue, 30 Nov 1999 09:04:18 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: DJGPP and DataEase CDFs In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 28 Nov 1999, Matt Pemberton wrote: > I am trying to create a Custom Defined Function for DataEase (Version 5, > 16M edition). What is DataEase? Does it come as an object file library? If so, your problem is much more serious than what you seem to think: linking DJGPP with object files produced by other compilers usually doesn't work. See section 17.5 of the DJGPP FAQ for more details. > The DataEase manual tells me I can do this 'in any language > which supports the use of far pointers and the pascal calling convention'. To get functions that use Pascal calling convention, use the `stdcall' attribute, it's described in the GCC docs. As for `far', simply define it away; section 17.7 of the FAQ shows how. But the fact that DataEase wants `far' probably means that it uses either real-mode code or 16-bit protected-mode code. Both are incompatible with DJGPP.