32 bit phobos

Seb seb at wilzba.ch
Wed Jun 10 00:58:20 UTC 2020


On Tuesday, 9 June 2020 at 17:58:56 UTC, welkam wrote:
> I tried to compile a 32 bit executable but my system does not 
> have 32 bit phobos. How do I get 32 bit phobos? I am using 
> Manjaro.
>
> dmd -m32 source/test2.d
> /usr/bin/ld: skipping incompatible 
> /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../libphobos2.a 
> when searching for -lphobos2
> /usr/bin/ld: skipping incompatible /usr/lib/libphobos2.a when 
> searching for -lphobos2
> /usr/bin/ld: cannot find -lphobos2
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1

Download a DMD archive (.tar.xz) from 
https://dlang.org/download.html or use the official install 
script.
DMD archives contain both 32 and 64-bit binaries.


More information about the Digitalmars-d-learn mailing list