www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13898] New: Link error from std.stdio readRaw

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

          Issue ID: 13898
           Summary: Link error from std.stdio readRaw
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: qctechs gmail.com

Created attachment 1462
  --> https://issues.dlang.org/attachment.cgi?id=1462&action=edit
Log file of the issue generated using "dub build --build release &> log.txt"

Attempting to build using DUB, in release build mode, on OS X, in 64 bit, using
DMD, produces a linking error.

This error does not occur with LDC or in debug build mode.

The error is caused by calls to readRaw from the std.stdio module. Commenting
these in my source code fixes the problem.

The calls in question:

https://github.com/DDoS/GBAiD/blob/master/src/gbaid/memory.d#L925
https://github.com/DDoS/GBAiD/blob/master/src/gbaid/memory.d#L929
https://github.com/DDoS/GBAiD/blob/master/src/gbaid/memory.d#L937

The error log has been attached

--
Dec 26 2014