Mail Archives: djgpp/1998/10/17/05:45:29
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 -