dmd on ubuntu 64: how to unittest phobos with -m32?

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 6 07:37:00 PDT 2015


On Thursday, 6 August 2015 at 14:18:09 UTC, Andrei Alexandrescu 
wrote:
> So I am trying to unittest phobos in its 32-bit build on a 
> Ubuntu64 machine. I installed these additional packages:
>
> sudo apt-get install libc6-dev-i386 libcurl3:i386
>
> When I try to unittest a phobos module, e.g.:
>
> make -f posix.mak MODEL=32 std/conv.test
>
> I get:
>
> /usr/bin/ld: cannot find -lcurl
>
> What do I need to do to link libcurl/32 properly on my 64-bit 
> platform? I've searched around for a while, no avail.
>
>
> Thanks,
>
> Andrei

do you have gcc-multilib and g++multilib? It probably includes 
some necessary libraries for 32 bit compilation.


More information about the Digitalmars-d mailing list