delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/30/07:17:24

Date: Tue, 30 Nov 1999 09:04:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: DJGPP and DataEase CDFs
In-Reply-To: <mHg04.1789$4a5.42062@nnrp4.clara.net>
Message-ID: <Pine.SUN.3.91.991130090355.24907B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


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