Error: function std.stdio.setmode is not accessible from module a
Kirill Kryukov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 2 01:58:04 PDT 2016
Hello,
dmd 2.072.0 broke my project. I reduced it to following:
===== a.d start =====
import std.stdio;
void main()
{
setmode(stdin.fileno, 0x8000);
}
===== a.d end =====
Compiling on Windows 7 64-bit with the following commands:
C:\utl\dev\D\dmd-2.071.2\windows\bin\dmd.exe a.d -ofa1.exe
C:\utl\dev\D\dmd-2.072.0\windows\bin\dmd.exe a.d -ofa2.exe
The first one succeeds (producing a working executable), the
second one fails with these messages:
a.d(6): Deprecation: std.stdio.setmode is not visible from module
a
a.d(6): Error: function std.stdio.setmode is not accessible from
module a
2.072.0 changelog does not seem to mention anything relevant. Is
there something obvious I'm missing, or should I file a bug
report?
Thanks,
Kirill
More information about the Digitalmars-d-learn
mailing list