www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19798] New: linker fails to find cmath fmin in 32-bit Windows

https://issues.dlang.org/show_bug.cgi?id=19798

          Issue ID: 19798
           Summary: linker fails to find cmath fmin in 32-bit Windows
                    build
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: n8sh.secondary hotmail.com

On 64-bit Windows with 32-bit DMD v2.084.0 the following code fails to build:

```
void main()
{
    import core.stdc.math : fmin;
    const f = fmin(1.0f, 2.0f);
}
```

with:

```
Error 42: Symbol Undefined _fmin
Error: linker exited with status 1
```

--
Apr 09 2019