Ooops!

 

Thanks for the help folks.  I can’t believe I didn’t see that. J

 

Amrit

 

----

Amrit Kohli

[EMAIL PROTECTED]

 

-----Original Message-----
From: Walter Crosby [mailto:[EMAIL PROTECTED]
Sent:
Monday, October 11, 2004 2:09 PM
To: [EMAIL PROTECTED]
Subject: RE: [Mono-list] hello.cs

 

You are missing the brace right below public -- it points the wrong way.  You have  a CLOSE BRACE (}), where it should be an OPEN BRACE ({)

 

Walt Crosby

Executive VP

Terabase Corporation

10 Elm Street

Danvers, MA 01923

(978) 774-7999 x114

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Amrit Kohli
Sent:
Monday, October 11, 2004 2:01 PM
To: [EMAIL PROTECTED]
Subject: [Mono-list] hello.cs

Hello,

 

I am new to the mono development platform.  I found an article that illustrates how to write a simple “hello world” type of program in C#.  However, on my system (a windows 2000 box), the simple program does not compile.  Here is what the simple program looks like:

 

using System;

 

namespace HelloNameSpace

{

      public class Hello

      }

            static void Main(string[] args)

            {

                  Console.WriteLine("What we think, we become.");

            }

      }

}

 

The compiler gives me the following error message:

 

syntax error, got token `CLOSE_BRACE', expecting OPEN_BRACE COLON

hello.cs(6) error CS8025: Parsing error

Compilation failed: 1 error(s), 0 warnings

 

I am using mono v1.0.2 for windows.

 

What am I missing?

 

Thanks,

 

Amrit

----

Amrit Kohli

[EMAIL PROTECTED]

 

Reply via email to