Bug 19798 – linker fails to find cmath fmin in 32-bit Windows build

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2019-04-09T21:59:32Z
Last change time
2024-12-13T19:02:58Z
Assigned to
No Owner
Creator
Nathan S.
Moved to GitHub: dmd#19555 →

Comments

Comment #0 by n8sh.secondary — 2019-04-09T21:59:32Z
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 ```
Comment #1 by n8sh.secondary — 2019-04-09T22:00:45Z
The same problem doesn't occur for fmax, I should mention.
Comment #2 by greeenify — 2019-04-10T00:15:21Z
Does this also happen with the MSRuntime? E.g. building with Mscoff
Comment #3 by n8sh.secondary — 2019-04-10T01:34:04Z
It does not.
Comment #4 by n8sh.secondary — 2019-04-19T09:10:01Z
I made a mistake: it also happens with fmax.
Comment #5 by robert.schadek — 2024-12-13T19:02:58Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19555 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB