www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4696] New: function pointers to std.math functions cause linking errors

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4696

           Summary: function pointers to std.math functions cause linking
                    errors
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: necroment gmail.com


--- Comment #0 from Max Klyga <necroment gmail.com> 2010-08-20 15:50:19 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4696


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE


--- Comment #1 from Don <clugdbug yahoo.com.au> 2010-09-20 08:44:31 PDT ---
*** This issue has been marked as a duplicate of issue 4541 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 20 2010