Thread overview
Error compiling test code
May 20, 2014
Larry Hemsley
May 20, 2014
Rikki Cattermole
May 24, 2014
Larry Hemsley
May 20, 2014
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.
May 20, 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
May 24, 2014
Sometimes I am such a dunce. That is exactly what I did. Fixed now.
Somehow I read import stdio.d as import std.stdio.d must have been a late night.

On Tuesday, 20 May 2014 at 03:21:52 UTC, Rikki Cattermole wrote:
> 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