Thread overview
rndtonl
Nov 04, 2014
Laeeth Isharc
Nov 04, 2014
Adam D. Ruppe
Nov 06, 2014
Laeeth Isharc
November 04, 2014
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 exit status
--- errorlevel 1
November 04, 2014
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.
November 06, 2014
Thanks, Adam.

Should we perhaps make a pull to suggest updating the docs/wiki?  As the point below is not what one would infer from the dlang.org library reference page.

(If I say we, it's because I don't know what the protocol is, or whether my perception is right).

On Tuesday, 4 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.