August 11, 2021

When installing ldc (pkg install ldc) in termux and testing it with a "Hello world" program, it returned an error.

$ vim hello_world.d
$ ldc2 hello_world.d
clang-12: error: invalid linker name in argument '-fuse-ld=bfd'
Error: /data/data/com.termux/files/usr/bin/cc failed with status: 1

It is a repost, because i need a solution and nobody answered me.

August 11, 2021

On Wednesday, 11 August 2021 at 17:06:42 UTC, _Coffee wrote:

>

When installing ldc (pkg install ldc) in termux and testing it with a "Hello world" program, it returned an error.

$ vim hello_world.d
$ ldc2 hello_world.d
clang-12: error: invalid linker name in argument '-fuse-ld=bfd'
Error: /data/data/com.termux/files/usr/bin/cc failed with status: 1

It is a repost, because i need a solution and nobody answered me.

Congratz for apparently posting 4 times and dismissing my answer in https://forum.dlang.org/post/qferxslzxesjpyqmevuz@forum.dlang.org. Try ldc2 -linker= hello_world.d.