www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error compiling test code

reply "Larry Hemsley" <somebody Someplace.com> writes:
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 19 2014
parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
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 19 2014
parent "Larry Hemsley" <somebody Someplace.com> writes:
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
May 23 2014