how do i fix undefined reference with betterC ?
Joakim
dlang at joakim.fea.st
Fri Oct 12 03:02:55 UTC 2018
On Friday, 12 October 2018 at 02:27:35 UTC, test wrote:
>
> I am use betterC with pthread_attr_t and 1.12.0 (DMD v2.082.0,
> LLVM 7.0.0) for Android 64 in termux, get this error:
>
> undefined reference to
> `_D4core3sys5posixQk5types14pthread_attr_t6__initZ'
beta1 or beta2? Cross-compiling or natively compiling?
> The same code in linux and macOS has no error ?
Are you using betterC on those other platforms too? I believe
that's a druntime symbol that it's generating, which shouldn't be
there for betterC. I'm able to reproduce this in Termux natively
but not on linux/x64, could be a bug in betterC or an even
longer-standing issue where the D frontend randomly puts out
those symbols.
File an issue on github and we'll look into it:
https://github.com/ldc-developers/ldc/issues
More information about the digitalmars-d-ldc
mailing list