Error compiling test code

Rikki Cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 19 20:21:52 PDT 2014


On 20/05/2014 3:17 p.m., Larry Hemsley wrote:
> I just installed dmd on Mint Linux distro using the Ubuntu dep
> package.
> Ran a simple test program test.d and recieved this error.
>
> test.d(1): Error: module stdio is in file 'stdio.d' which cannot
> be read
> import path[0] = /usr/include/dmd/phobos
> import path[1] = /usr/include/dmd/druntime/import
>
> Checked dmd.conf in the /etc folder and it is there.
> Checked include files in /usr/include/dmd and thery are there.
> Checked Lib location in dmd.conf and it appears to be there.
>
> Any hints on what is wrong will be appreciated.

Did you use:
import std.stdio;
or
import stdio;

Because it should be std.stdio


More information about the Digitalmars-d-learn mailing list