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: [email protected]
Reporter: [email protected]
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
```
--