Which import lib holds lrintf()?

Jesse Phillips jessekphillips+D at gmail.com
Wed Apr 27 09:52:55 PDT 2011


Andrej Mitrovic Wrote:

> import std.c.math : lrintf;
> 
> void main()
> {
>     lrintf(4.0);
> }
> 
> Error 42: Symbol Undefined _lrintf
> --- errorlevel 1

Just a guess, libm?

dmd testfile.d -L-lm

m is the C math library for linux right? Windows I don't know.


More information about the Digitalmars-d-learn mailing list