delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/09/19:49:17

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP- Need .lib -> .o or .a convertor
Date: Tue, 09 Sep 1997 18:55:17 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 53
Message-ID: <34159B95.2717@cs.com>
References: <5u8ojt$2ch AT camel3 DOT mindspring DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp101.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Joshua Humphries 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...
> 
> 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.

exe2coff is not a code translator; it merely removes the real mode stub
from DJGPP-compiled programs.  This was intended mainly for use with
DJGPP v2.00, when the debugging tools required unstubbed images.  Since
the v2.01 tools are smarter, exe2coff is seldom needed.

In any case, you need an object code converter that converts from OBJ to
COFF format.  There are a few of these, but they have extremely strict
requirements:

- The code must be compiled for a flat memory model.
- It must be written for protected mode; it cannot directly access
hardware or conventional memory or anything else prohibited in protected
mode programs.  Since you're talking about a sound library, your chances
of making it work with DJGPP are minimal at best.

Look in chapter 17 of the DJGPP Frequently Asked Questions list
(v2/faq210b.zip from SimTel or online at
http://www.delorie.com/djgpp/v2faq/) for information on converting
16-bit code to work with DJGPP, as well as pointers to programs to
accomplish the task.

> anyways... thanks in advance for any pointers or tips (and if your thinking
> of suggesting the Allegro multimedia libs [for game programming], no thanks...
> I know it can playback MID files but I'd like a little more control over
> playback and various other things...

Allegro will soon have better music support, but in the meantime, why
don't you check out the various sound libraries available on the net? 
It seems that someone announces a new DJGPP-compatible sound library
every month or so on this newsgroup.  :)  Look on Brennan's DJGPP2+Games
Resources page (http://www.rt66.com/~brennan/djgpp/) for a huge list of
pointers to sound libraries, graphics libraries, and many other related
topics.

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Animals can be driven crazy by pla- |
|       aka Fighteer I       | cing too many in too small a pen.    |
|   mailto:fighteer AT cs DOT com   | Homo sapiens is the only animal that |
| http://www.cs.com/fighteer | voluntarily does this to himself."   |
---------------------------------------------------------------------

- Raw text -


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