X86 COFF format static libraries is very important for d, how to use them? -ms32coff?

Joakim via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 8 21:21:04 PST 2014


On Sunday, 9 November 2014 at 03:44:00 UTC, FrankLike wrote:
> X86 COFF format static libraries is very important for  d,such 
> as the x86 server, x86 small devices, and how to use them?
> Most of x86 COFF format static libraries are built by c.
>
> dmd -ms32coff ?

It's "-m32mscoff", but yeah, that's all you need to use with dmd. 
  You'll also need to recompile druntime and phobos, which I 
believe can be done for both with the following command:

make -fwin64.mak MODEL=32mscoff

win64.mak has the configuration to pull in MSVC and you need to 
specify the model so that it compiles for 32-bit.  Of course, 
this is only available in git HEAD, not in the stable release 
yet.  You can find info about building from source on Windows 
here:

http://wiki.dlang.org/Building_DMD#Windows_2


More information about the Digitalmars-d mailing list