delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/11/03:51:16

Message-ID: <19980811075102.5055.qmail@hotmail.com>
From: "Oliver Richman" <orichman AT hotmail DOT com>
To: agrath_98 AT yahoo DOT com
Cc: djgpp AT delorie DOT com
Subject: How to convert LIB files [was: Re: Digital Music.]
Date: Tue, 11 Aug 1998 00:51:02 PDT

>I program in DJGPP with allegro, but I have a incredible awesome sound
>player libary that I downloaded from the internet.  It has libarys for
>C/C++, ASM, Basic, Powerbasic,  ETC.

Hi. My advice on the easiest path:
  Contact the author and ask him for the C/C++ source code.

Failing that, get a library editor and extract all the .O files from the 
C/C++ .lib, then re-link then into a .a file for use with GNU GCC 
(DJGPP).

Failing that, disassemble the asm .lib file with Sourcer. Re-label the 
entry points into the library calls. Then write an array of pointers to 
function which each point to a function containing AT&T assembly code to 
load the function arguments from the call into local variables and then 
into the assembly language variables, and then call the library function 
from the assembly.

There may be easier ways to do what I have described, I am just trying 
to be "clear". There may be a better solution.

--Oliver

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- Raw text -


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