Bug 4696 – function pointers to std.math functions cause linking errors

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Mac OS X
Creation time
2010-08-20T15:50:00Z
Last change time
2010-09-20T08:44:31Z
Assigned to
nobody
Creator
necroment

Comments

Comment #0 by necroment — 2010-08-20T15:50:19Z
import std.math; void main() { auto x = [ &sin, &cos ]; } output: prog.o: In function `_Dmain': prog.d:(.text._Dmain+0x4): undefined reference to `_D3std4math3cosFNaNbeZe' prog.d:(.text._Dmain+0xa): undefined reference to `_D3std4math3sinFNaNbeZe' collect2: ld returned 1 exit status
Comment #1 by clugdbug — 2010-09-20T08:44:31Z
*** This issue has been marked as a duplicate of issue 4541 ***