November 2014 at 18:39:29 UTC, Adam D. Ruppe wrote:
I think rndtonl is a C library function that isn't always
present in the system.
It doesn't work on my computer either and I can't find any
documentation about it. It is probably not meant to be called
by end users.
what am I doing wrong here?
import std.math;
import std.stdio;
void main()
{
real fac;
fac=1.2;
fac=rndtonl(fac);
}
[root@fedorabox util]# dmd bug.d
bug.o: In function `_Dmain':
bug.d:(.text._Dmain+0x3b): undefined reference to `rndtonl'
collect2: error: ld returned 1
I think rndtonl is a C library function that isn't always present
in the system.
It doesn't work on my computer either and I can't find any
documentation about it. It is probably not meant to be called by
end users.