delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/31/13:02:58

Date: Sun, 31 Aug 1997 09:59:46 -0700 (PDT)
Message-Id: <199708311659.JAA19593@adit.ap.net>
Mime-Version: 1.0
To: h5513 AT mindspring DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: HELP- Need .lib -> .o or .a convertor
Cc: djgpp AT delorie DOT com

At 09:19  8/30/1997 GMT, you wrote:
>I am not familiar with the .o or .a UNIX object and archive formats nor with
>the borland DOS .lib formats.
>So I need a program which can translate between the two...
No, sorry, you can't really do it. There are all sorts of problems
converting the formats, but the basic underlying problem is that the .lib
file has real-mode code in it. If you linked it with a DJGPP program, which
runs in protected mode, it would almost certainly crash.

So your best bet is to port the library, if you have the sources. If not,
rewrite the routines you need from scratch, or use Allegro, for instance, as
a starting point and modify it.

>If there exists a program like EXE2COFF except for .lib's (& .obj's would be
>nice too but not necessarily important to me at this time) instead of .exe's
>I would greatly appreciate pointers on where to find it.
The EXE2COFF name is misleading. It only can convert those EXE files that
are really stubified COFF. Any other EXE will not work.

Sorry.


Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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