Talking to non-D libraries

clayasaurus clayasaurus at gmail.com
Mon Feb 20 06:07:30 PST 2006


Have you tried the derelict project on dsource.org? It is good for both 
linux and windows, it will load .dll and .so files at runtime so you 
don't have to mess with .lib formats.

Chris wrote:
> Thanks,
> 
> I've tried the original .libs too they also cannot be recognized.
> 
> I cannot understand how to deal with .libs for now.
> 
> I've tried the version found here: http://shinh.skr.jp/d/porting.html 
> and it works. Then there is a SDL_image.d file but no lib for it and I 
> cannot make it link in any way.
> 
> I've opened the lib files (but not with a HEX editor) and I saw there is 
> the following difference: the original have this at the beginning of the 
> file:
> 
> !<arch>
> /               1100558372              0       1248
> 
> The other one and the one I've tried to generate with lib.exe - don't, 
> they have something like:
> 
> ð
> 
> I'm reading this:
> http://www.digitalmars.com/d/interfaceToC.html
> http://www.digitalmars.com/d/htomodule.html
> 
> And I still don't understand what to do ;).
> 
> Regards,
> 
>     Chris
> 
>> Actually I'm not sure if I put the DMC or the original Win lib there...
>> Murphy's states that whatever it is for, it's probably not yours :-)
>>
>> However, the real deal should be available from http://www.libsdl.org/
>>
>> --anders



More information about the Digitalmars-d-learn mailing list