Bug 11568 – can't compile std.stdio.rawWrite with -m64 in Windows
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2013-11-21T07:02:00Z
Last change time
2013-11-22T04:44:06Z
Assigned to
nobody
Creator
enjouzensyou.boinc
Comments
Comment #0 by enjouzensyou.boinc — 2013-11-21T07:02:47Z
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
-----
Comment #1 by enjouzensyou.boinc — 2013-11-22T04:44:06Z
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`.