Can't compile with ldc in termux

2021-08-11 Thread _ZZ_ZZ_ZZ via Digitalmars-d-learn
After having downloaded `ldc` in Termux, i have tried to create an example script (obviously, D-program) and after having compiled it, it gives an error. ``` $ vim example_program.d $ ldc2 example_program.d clang-12: error: invalid linker name in argument '-fuse-ld=bfd' Error: /data/data/com.ter

Re: Can't compile with ldc in termux

2021-08-11 Thread _ZZ_ZZ_ZZ via Digitalmars-d-learn
On Wednesday, 11 August 2021 at 18:20:13 UTC, Paul Backus wrote: Maybe try compiling with `--linker=` (nothing after the `=` sign) and see if that helps? YOU ARE MY HERO!!! it works, and it's great! But in any case ... Can i configure the compiler to automatically execute the `--linker =` fla

Re: Can't compile with ldc in termux

2021-08-11 Thread _ZZ_ZZ_ZZ via Digitalmars-d-learn
On Wednesday, 11 August 2021 at 18:58:16 UTC, jfondren wrote: confirm the location of ldc2.conf with `ldc2 -v`, then edit that file. Mine was at ../usr/etc/ldc2.conf (relative to $HOME) Mine was at `/data/data/com.termux/files/usr/etc/ldc2.conf` too. Now, the file contains: ``` $ cat ldc2.conf

Re: Can't compile with ldc in termux

2021-08-11 Thread _ZZ_ZZ_ZZ via Digitalmars-d-learn
On Wednesday, 11 August 2021 at 19:17:40 UTC, jfondren wrote: On Wednesday, 11 August 2021 at 19:16:25 UTC, jfondren wrote: With two dashes: ``` default: { switches = [ "-defaultlib=phobos2-ldc,druntime-ldc", "-link-defaultlib-shared=false", "--linker=", // <-- add t