Mail Archives: djgpp/1997/01/14/02:35:17
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 -