Error: module ctype is in file 'std/ctype.d' which cannot be read - when running dmd

Roman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 24 14:17:44 PDT 2016


On Friday, 24 June 2016 at 21:06:30 UTC, cym13 wrote:
> On Friday, 24 June 2016 at 21:01:11 UTC, Roman wrote:
>> I should probably add that only importing std.ctype causes the 
>> error.
>> I have a bunch of other imports:
>>
>>     import std.stdio, std.string, std.algorithm, std.conv, 
>> std.ctype, std.regex, std.range;
>>
>> If I remove std.ctype, it compiles just fine.
>
> std.ctype (as well as other c-specific bindings) was moved to 
> core.stdc so just replace std.ctype by core.stdc.ctype and it 
> should work as intended.

Thank you, that worked.


More information about the Digitalmars-d-learn mailing list