Using D libs in C

Ellery Newcomer ellery-newcomer at
Sun Jan 16 15:11:03 PST 2011

On 01/16/2011 05:04 PM, Ellery Newcomer wrote:
> On 01/16/2011 03:34 PM, Andrej Mitrovic wrote:
>> The problem (on Windows), is that the static lib is in the OMF format,
>> and modern tools like VC or MinGW won't be able to read those, because
>> they use COFF instead. So you would have to convert from OMF to COFF.
>> But on Linux I think DMD uses the standard Linux object file format,
>> so I don't think there's issues there. (AFAIK).
> it didn't work the last time I tried it

hmm. take out the __gshared int, and add -lib to the dmd command, and it 
does work..

More information about the Digitalmars-d-learn mailing list