www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11568] New: can't compile std.stdio.rawWrite with -m64 in Windows

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

           Summary: can't compile std.stdio.rawWrite with -m64 in Windows
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: enjouzensyou.boinc gmail.com


--- Comment #0 from Kazuki Komatsu <enjouzensyou.boinc gmail.com> 2013-11-21
07:02:47 PST ---
Cannot compile the following code with -m64.

-----
import std.stdio;

void main()
{
    auto file = File("foo.txt", "w");
    file.rawWrite([0, 1, 2, 3]);
}
-----

-----
C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(579): Error: undefined
identifier '_fileno', did you mean 'function f
ileno'?
C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(580): Error: undefined
identifier '_setmode'
C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(580): Error: undefined
identifier _O_BINARY
C:\D\dmd2\windows\bin\..\..\src\phobos\std\stdio.d(581): Error: undefined
identifier '_setmode'
stereo_test.d(6): Error: template instance std.stdio.File.rawWrite!int error
instantiating
-----

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2013
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11568


Kazuki Komatsu <enjouzensyou.boinc gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Kazuki Komatsu <enjouzensyou.boinc gmail.com> 2013-11-22
04:44:06 PST ---
Sorry, in GitHub HEAD, this issue is fixed, but `std.stdio.rawRead` and some
unittests cannot compile in Win64. 

So, I close this issue and open a new issue about `std.stdui.rawRead`.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 22 2013