Thread overview
std.stdio not found?
Dec 27, 2005
akcom
edit
Dec 27, 2005
akcom
Dec 27, 2005
Derek Parnell
Dec 28, 2005
John Reimer
December 27, 2005
module Test;

import std.stdio;
//import std.c.stdio;

int main( char [][]args )
{
	for ( int i = 0; i < args.length; i++ )
	{
		writefln( "argument[%u] = \"%s\"\n", i, cast( char * )args[i] );
	}
	return 0;
}

when I try to compile that, I get the following error: "module stdio
cannot read file 'std\stdio.d'
when I comment out the first import statement and uncomment the second,
I am told that writefln is undefined, any ideas?
December 27, 2005
akcom wrote:
> module Test;
> 
> import std.stdio;
> //import std.c.stdio;
> 
> int main( char [][]args )
> {
> 	for ( int i = 0; i < args.length; i++ )
> 	{
> 		writefln( "argument[%u] = \"%s\"\n", i, cast( char * )args[i] );
> 	}
> 	return 0;
> }
> 
> when I try to compile that, I get the following error: "module stdio
> cannot read file 'std\stdio.d'
> when I comment out the first import statement and uncomment the second,
> I am told that writefln is undefined, any ideas?

I forgot to mention that I was using Ares, I'm assuming that is the problem? (not to mention I just found out I don't have to use char pointer cast)
December 27, 2005
On Tue, 27 Dec 2005 17:49:12 -0500, akcom wrote:

> akcom wrote:
>> module Test;
>> 
>> import std.stdio;
>> //import std.c.stdio;
>> 
>> int main( char [][]args )
>> {
>> 	for ( int i = 0; i < args.length; i++ )
>> 	{
>> 		writefln( "argument[%u] = \"%s\"\n", i, cast( char * )args[i] );
>> 	}
>> 	return 0;
>> }
>> 
>> when I try to compile that, I get the following error: "module stdio
>> cannot read file 'std\stdio.d'
>> when I comment out the first import statement and uncomment the second,
>> I am told that writefln is undefined, any ideas?
> 
> I forgot to mention that I was using Ares, I'm assuming that is the problem? (not to mention I just found out I don't have to use char pointer cast)

I can't help you with the Ares problem. Does it work when *not* using Ares?

Also, here is a more "D"-ish version of your code...

 import std.stdio;
 int main( char [][]args )
 {
    foreach ( int i, char[] s; args )
    {
      writefln( `argument[%d] = "%s"`, i, s );
    }
    return 0;
 }

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"A learning experience is one of those things that says,
 'You know that thing you just did? Don't do that.'" - D.N. Adams
28/12/2005 10:13:43 AM
December 28, 2005
akcom wrote:
> akcom wrote:
>> module Test;
>>
>> import std.stdio;
>> //import std.c.stdio;
>>
>> int main( char [][]args )
>> {
>> 	for ( int i = 0; i < args.length; i++ )
>> 	{
>> 		writefln( "argument[%u] = \"%s\"\n", i, cast( char * )args[i] );
>> 	}
>> 	return 0;
>> }
>>
>> when I try to compile that, I get the following error: "module stdio
>> cannot read file 'std\stdio.d'
>> when I comment out the first import statement and uncomment the second,
>> I am told that writefln is undefined, any ideas?
> 
> I forgot to mention that I was using Ares, I'm assuming that is the
> problem? (not to mention I just found out I don't have to use char
> pointer cast)

I don't think Ares contains the function writefln, at the moment.

-JJR