delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/17/05:45:29

Message-ID: <36286313.FD48BE11@mailexcite.com>
Date: Sat, 17 Oct 1998 05:27:48 -0400
From: Doug Gale <dgale AT mailexcite DOT com>
X-Mailer: Mozilla 4.05 [en] (Win95; U)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Converting the Direct X libs to RSXNTDJ
References: <708tb6$f9r AT news3 DOT force9 DOT net>
NNTP-Posting-Host: oshawappp19.idirect.com
Organization: "Usenet User"
Lines: 43
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

B Gillhespy wrote:

> I want to be able to compile the Mikmod for DirectX library for use with
> RSXDJNT, however, I think I need to convert the directx libs to GNU style
> libs first.
>
> Can I download converted libs, or can't they be converted?  Perhaps I need
> to get the source files and simply compile them as a lib?

All you need to do is use makelib (in RSXNTDJ) to build the necessary import
libraries. Just run makelib like this:

makelib c:\windows\system\<dllname>

where <dllname> is each of these:

d3dim.dll
d3drm.dll
d3dxof.dll
ddraw.dll
dinput.dll
etc...
etc...

When you run makelib c:\windows\system\d3dim.dll, makelib will produce a
d3dim.a, which is the import library.

Note that if you want to use the -l switch for gcc, you will have to rename
them so they begin with lib (e.g. libd3dim.a). Feel free to rename the library
to whetever you want - it doesn't make a difference. You can also include a
library in the link without renaming it by treating it as a normal object file
like this:

gcc -Zwin32 foo1.o foo2.o d3dim.a -o myprog.exe

or, if you rename it to libd3dim.a, do it like this:

gcc -Zwin32 foo1.o foo2.o -o myprog.exe -ld3dim

IIRC, if you include a library as a normal object file, it still only pulls in
the stuff it needs.


- Raw text -


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