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

FrankLike via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 11 16:25:34 PST 2014


> 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.

  will create a.lib and a.exp
  druntime32mscoff.lib(dmain2_560_47b.obj):error LNK2019:Unresolved
external symbol _getErrno,the  symbol is referenced in 
__d_run_main
phobos32mscoff.lib(errno_229_226.obj):error LNK2001:Unresolved 
external
  symbol _getErrno
  a.exe:fatal error LNK1120:An unresolved external symbol.



More information about the Digitalmars-d mailing list