gdcwin for linking with Visual Studio libs?
dac at nospam.com.au
Tue Oct 17 05:36:06 PDT 2006
Bill Baxter wrote:
> If I understand it correctly, dmd and gdc cannot link with MSVC C libs
> because of different object file formats, right?
> But can I link MSVC code with D code if I use the MinGW gcc d compiler
> (gdcwin)? From what I understand a MinGW .o can just be renamed .obj
> and a MinGW .a to .lib and it'll link using MSVC.
Correct. Both gcc and MSVC use COFF format lib files; DMD uses OMF. You
can use Walter's COFF2OMF tool to convert COFF to OMF, though.
Nothing works with C++, though, since the name mangling isn't standardised.
> Has anyone tried such things? The gdcwin page
> (http://gdcwin.sourceforge.net) doesn't say much about the topic.
More information about the Digitalmars-d-learn