delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/14/02:35:17

Date: Tue, 14 Jan 1997 09:12:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Dr Arthur Jones <arthur DOT jones AT nottingham DOT ac DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: Using Microsoft C object code with DJGPP/RHIDE
In-Reply-To: <32DAD173.7045@nottingham.ac.uk>
Message-ID: <Pine.SUN.3.91.970114090808.11860P-100000@is>
MIME-Version: 1.0

On Mon, 13 Jan 1997, Dr Arthur Jones wrote:

> extern far function1( int, int, .... )
> 
> I've tried loading the object code into a RHIDE project and compiling/
> linking the program, but it gives something like "parse error before ("
> when it gets to the header file and doesn't compile.

That's the least of your problems, sadly.  The parse error is because GCC 
doesn't know about the `far' qualifier.  The DJGPP FAQ list 
(v2/faq202b.zip from the same place you get DJGPP) explains in section 
17.7 how to deal with these keywords.

> Is it fundamentally possible to link MS-C object code into DJGPP? Am I 
> missing the obvious, or am I trying to do the impossible?

That's the *real* bad news: you can't.  There are some exceptions to that 
rule, all explained in sections 17.3 - 17.5 of the FAQ, so be sure to 
read them before you decide what are your options.

The best way is to gain access to the source code and rewrite it to work 
with DJGPP.

- Raw text -


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