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

Rainer Schuetze via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 11 11:37:32 PST 2014



On 11.11.2014 14:46, FrankLike wrote:
>> I suspect you are compiling the druntime/phobos library with the
>> 64-bit VC compiler. Make sure cl.exe is the compiler targeting 32-bit
>> when running "make -fwin64.mak MODEL=m32mscoff".
>
> I've done it as you said:compiling the druntime/phobos library with the
> 64-bit VC compiler.and cl.exe is the   compiler.
>
> OPEN:%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio
> 10.0\VC\vcvarsall.bat"" amd64

You have to compile druntime and phobos with the x86 compiler aswell. 
Otherwise the C files in the library are built for the wrong architecture.

So you should be fine if you use "x86" intead of "amd64" in the line above.


More information about the Digitalmars-d mailing list