dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [DotGNU]System.IO.Directory compile error


From: Aditya P. Bansod
Subject: RE: [DotGNU]System.IO.Directory compile error
Date: Sun, 2 Mar 2003 14:41:54 -0800

Jeff,

I have no trouble compiling this with cscc 0.5.3.

address@hidden ~/test
$ cscc dir.cs

address@hidden ~/test
$ cscc -lSystem -o dir.exe dir.cs

My most recent cvs update -d was about 3 days ago.

--Aditya

> -----Original Message-----
> From: j_post [mailto:address@hidden 
> Sent: Sunday, March 02, 2003 9:59 AM
> To: address@hidden
> Subject: [DotGNU]System.IO.Directory compile error
> 
> 
> 
> Perhaps I've gone brain-dead, but I don't understand why I 
> get this compiler 
> error. Any help appreciated.
> TIA,
> Jeff
> 
> // compiled with "cscc -lSystem -o dir.exe dir.cs
> // gives error "called object is not a method or delegate"
> 
> using System;
> using System.IO;
> using System.IO.Directory;
> 
> namespace DIRECTORYTEST
> {
>       class MainClass
>       {
>               static int Main(string[] args)
>               {
>                       string thisDir = 
> System.IO.Directory.GetCurrentDirectory();
> // error with GetCurrentDirectory() - not method or delegate
>                       Console.WriteLine("Current directory: 
> {0}", thisDir);
>                       return 0;
>               }
>       }
> }
> 
> _______________________________________________
> Developers mailing list
> address@hidden 
> http://www.dotgnu.org/mailman/listinfo/develop> ers
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]