From Reddit

Don nospam at nospam.com
Tue Jun 30 00:25:24 PDT 2009


bearophile wrote:
> Don:
>> Using C code from DMD on Windows is exactly the same as using it from 
>> any Windows C++ compiler (or even a C compiler from a different 
>> vendor!). 
> 
> I don't understand your words. Do you mean on Windows you can produce object code with MinGW too (just released 4.4!), and then use it from DMD D?
> 
> Bye,
> bearophile
No. But that's nothing to do with D. This is an object file 
incompatibility, not a language issue.
You can't use a MingW object file from DMC, or from MSVC, either.
DMD can however use an object file from any C compiler which uses OMF 
object files, such as Watcom or DMC.
OTOH you can get a MinGW object file, run it through an obj conversion 
utility, and then link it to DMD.



More information about the Digitalmars-d mailing list