www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/01:21:13

Date: Thu, 13 Feb 1997 08:14:05 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martin Bernreuther <Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de>
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: <Pine.SUN.3.91.970213080728.8898C-100000@is>
MIME-Version: 1.0

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. 

- Raw text -


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