Date: Tue, 14 Jan 1997 09:12:42 +0200 (IST) From: Eli Zaretskii To: Dr Arthur Jones 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.