Date: Thu, 13 Feb 1997 08:14:05 +0200 (IST) From: Eli Zaretskii To: Martin Bernreuther cc: djgpp AT delorie DOT com Subject: Re: Libraries: Conversion of MSVCC *.lib to DJGPP *.a In-Reply-To: <3301F735.45AB@po.uni-stuttgart.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 12 Feb 1997, Martin Bernreuther wrote: > Most of them support MS,Borland,Watcom and GNU compilers for OS/2&UNIX. > Makefiles for these platforms are available and it's no problem to compile > the library. But usually there are no makefiles for DJGPP/RSXNTDJ. > > Is there a possibiliy to generate the libraries with the MS,... compiler and > use this library with djgpp? Mostly, no. This should be the last way you should think of. > Is there an easy way to modify the makefiles to build a native djgpp library? > What is important here? The best way is to start with a Makefile for GCC on Unix and just try to run it. If you install the port of `bash' and the auxiliary utilities, chances are that the Unix Makefile will run right out of the box. The only problems that you might have are when you need to link in additional libraries that aren't included in DJGPP. If this happens, try to remove the -lxyzzy options from the link command lines and see whether these functions at all exist in DJGPP (the linker would complain if not). Another gotcha is that the DOS Makefiles might invoke the compiler with some switches that define DOS-specific symbols which are used inside the sources in #ifdef statements. You will have to edit the Makefile to add such switches to the GCC command lines or to the value of CPPFLAGS to make the code compile right with DJGPP.