www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - rndtonl

reply "Laeeth Isharc" <laeethnospam spammenot_laeeth.com> writes:
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
Nov 04 2014
parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
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.
Nov 04 2014
parent "Laeeth Isharc" <laeethnospam spammenot_laeeth.com> writes:
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.
Nov 05 2014