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

2014-11-15 Thread FrankLike via Digitalmars-d
Maybe you forgot to clean up the object files from the win64/win32-dmc build? This is extracted from my build batch: set dm_make=c:\l\dmc\bin\make set DMD=../windows/bin/dmd.exe set cl32=%VCINSTALLDIR%/bin/cl.exe set ar32=%VCINSTALLDIR%/bin/lib.exe cd druntime del /q errno_c.obj complex.obj

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

2014-11-14 Thread Rainer Schuetze via Digitalmars-d
On 12.11.2014 01:25, FrankLike wrote: 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.

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

2014-11-11 Thread FrankLike via Digitalmars-d
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

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

2014-11-11 Thread Rainer Schuetze via Digitalmars-d
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

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

2014-11-11 Thread FrankLike via Digitalmars-d
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. Sorry,get the same error.

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

2014-11-10 Thread FrankLike via Digitalmars-d
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

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

2014-11-10 Thread FrankLike via Digitalmars-d
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:

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

2014-11-10 Thread Rainer Schuetze via Digitalmars-d
On 10.11.2014 17:03, FrankLike wrote: 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

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

2014-11-09 Thread AlanThinker via Digitalmars-d
Is it possible in new verson, offer 32 bit COFF druntime and phobos lib? Because it's hard to me to compile for myself. On Sunday, 9 November 2014 at 05:21:06 UTC, Joakim wrote: On Sunday, 9 November 2014 at 03:44:00 UTC, FrankLike wrote: X86 COFF format static libraries is very important for

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

2014-11-08 Thread FrankLike via Digitalmars-d
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 ?

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

2014-11-08 Thread Joakim via Digitalmars-d
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