Cannot link with libphobos2.a with GCC 6.2 on Ubuntu 16.10
Matthias Klumpp via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Oct 13 11:35:43 PDT 2016
On Thursday, 13 October 2016 at 17:07:19 UTC, Nordlöw wrote:
> On Thursday, 13 October 2016 at 17:02:32 UTC, Nordlöw wrote:
>> Am I using the wrong GCC version? Should I use GCC 5 instead?
>>
>> GCC 6.2 is default on 16.10.
>
> Compiling DMD with GCC 5 as
>
> make -f posix.mak HOST_CXX=g++-5
>
> also fails with same errors.
The new toolchains of Ubuntu (and Debian soon too) default to PIE
code, so in order to link correctly, the project needs to be
compiled with PIE/PIC to work.
More information about the Digitalmars-d-learn
mailing list