Date: Sun, 18 Oct 1998 13:31:40 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Porting UNIX-compiled libs to djgpp In-Reply-To: <3626d05f.25905240@news.cybersurf.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Fri, 16 Oct 1998, it was written: > I've got a really handy custom library that works with gcc/++ on a > Linux box. I've only got the header files and the bins (i.e. no > source). I'd like to get this library into a form that djgpp can use. > Is this possible? The only way I know of to get this done is to find a version of `objcopy' (it's part of GNU Binutils) that supports both ELF and COFF-GO32 targets, and use it to convert the library. If you cannot find such a version of `objcopy', you should be able to configure and rebuild Binutils so that these formats are supported. Note that even if you do the above, you might have some problems linking against that library, because the C and C++ headers used by the version of Linux used to compile the original sources were different from what DJGPP has. The way this manifests itself is that you get undefined reference errors from the linker.