delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/02/08:15:26

Date: Tue, 2 Nov 1999 09:55:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: "David C. Hoos, Sr." <david DOT c DOT hoos DOT sr AT ada95 DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Using Micro$oft libraries in dgpp programs
In-Reply-To: <7vk3vj$lrl$1@hobbes2.crc.com>
Message-ID: <Pine.SUN.3.91.991102095454.19809C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 1 Nov 1999, David C. Hoos, Sr. wrote:

> If I have already-built Micro$oft- or Borland-compiled
> libraries, is there any way to use these libraries in djgpp
> programs, e.g., by file format conversion, or whatever?

Not really.  This way should be taken only as desperate measures, when
you have no access to the sources of the compiled libraries.  The
chances of success are usually slim.

> Alternatively, if I have the source files for the libraries,
> with Makefiles for Micro$oft or Borland compilers, in general,
> how difficult is it to modify (I presume with #ifdefs in the
> header files) these sources to compile with gcc?

It depends on what non-standard extensions your programs use.  If you
tell a few more details about the programs, it might be possible to
come up with a more concrete answer.

> Are there any FAQs, books, or other resources on how to do this
> sort of thing

Try Chapters 18 and 17 (in that order) of the DJGPP FAQ list
(v2/faq211b.zip from the same place you get DJGPP), and then ask
specific questions if the FAQ leaves something unclear.

> or am I asking for the impossible, or impractical?

It is both possible and practical.

> As still another alternative, is there a decent serial
> communication library for djgpp?

Check section 22.3 of the FAQ, it mentions a few of them.

- Raw text -


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