[Issue 22683] New: core.math.rndtonl can't be linked

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 16 23:02:22 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22683

          Issue ID: 22683
           Summary: core.math.rndtonl can't be linked
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: tedgin at cyverse.org

The function rndtonl in the phobos package core.math is defined, but it isn't
available in the library's object file. Here's an example program that fails at
link time.

```
import core.math;
import std;

void main()
{
    const lval = rndtonl(5.0L);
    writeln("lval = %d", lval);
}
```

Here's the dmd linking error as reported by https://run.dlang.io.

```
./onlineapp.d:6: error: undefined reference to 'rndtonl'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
```

--


More information about the Digitalmars-d-bugs mailing list