[Mono-list] Help About Mono

Jonathan Stowe mono-list@ximian.com
Thu, 29 Apr 2004 08:51:54 +0100


On Thu, 2004-04-29 at 06:59, Shakil Islam Rousseau wrote:
> Ive installed the rpm 
> mono-0.28-1.ximian.6.1.i586.rpm &
> mono-devel-0.28-1.ximian.6.1.i586.rpm
> in Mandrake 9.2. But i cant compile any file. do i
> have to change the default config file ?
> is it possible for you guys to send me a little sample
> code and the right ways to compile those files?

Firstly 0.28 is quite old now.  The source code distribution of 0.31
should build fine on Mandrake 9.2 (I build from CVS on there nearly
every day ;)

To test if it is working you should create a file, say, mono_test.cs:

using System;

class MyTest
{
     public static void Main()
     {
        Console.WriteLine("Hello, World");
     }
}




And then you can compile it with:

   mcs mono_test.cs

If you don't get any errors (it will just say "Compilation succeeded" )
you can run the compiled program with:

   mono mono_test.exe

/J\