[Mono-list] Newbie - How do I compile example?

Nagappan A nagappan at gmail.com
Wed Mar 4 17:55:16 EST 2009


Hello,

On Mon, Mar 2, 2009 at 11:41 AM, LKeene <lionel.keene at gmail.com> wrote:

>
> Hello all, Mono newbie here. How do I compile the following example (which
> I've entered via Microsoft Norepad and saved as "c:\Mono Test\Simple.cs":
>
> using System.Windows.Forms;
> using System.Drawing;
>
> public class Simple : Form
> {
>    public Simple()
>    {
>       Text = "Simple";
>       Size = new Size(250, 200);
>       CenterToScreen();
>    }
>
>    static public void Main()
>    {
>       Application.Run(new Simple());
>    }
> }
>
> I've installed Mono 2.2 using the default installation parameters on my
> Wndows XP box. Then, at the command prompt, I tried changing to the
> compiler
> directory (the directory containing gmcs.exe) via:
>
> "cd c:\Program files\Mono-2.2\lib\mono\2.0"
>
> Then I invoke the compiler and specify the file to compile using the
> following:
>
> "gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll c:\Mono
> Test\simple.cs"
>
> I get errors at compile time claimg "'Mono' could not be found" &
> "Test\Simple.cs" could not be found. What is the proper procedure for doing
> this? Thanks so much in advance!


Could you please try the procedure as mentioned here ?
http://www.mono-project.com/Mono:Windows

Thanks
Nagappan

>
>
> -L
>
> --
> View this message in context:
> http://www.nabble.com/Newbie---How-do-I-compile-example--tp22295161p22295161.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>



-- 
Linux Desktop (GUI Application) Testing Project -
http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090304/87ac99fb/attachment.html 


More information about the Mono-list mailing list