RE: [Mono-list] hello.cs
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]
Re: [Mono-list] hello.cs
Line 6 has sintax error: > public class Hello > } the corret is: > public class Hello > { Your braces are inverted :) Everaldo. Amrit Kohli <[EMAIL PROTECTED]> wrote: 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] Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
Re: [Mono-list] hello.cs
Dnia poniedziaÅek, 11 paÅdziernika 2004 20:01, Amrit Kohli napisaÅ: > 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 > > } > There is a typo, it should be '{' instead of "}", since you are opening scope of Hello class > 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 The error message gives you info what is wrong and in which line. BTW. maybe jay output should be more versbose, like syntax error, got token `}', expecting `{' or `:' -- Kamil Skalski http://nemerle.org developer ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[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]