Mail Archives: djgpp/1999/11/30/07:17:24
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 -