View Full Version : stil stuck with Mono....pls help me

June 5th, 2008, 07:31 AM
i am trying to run a file called "Program.cs" using Mono.

Here is the Program.cs content:-

using System;

using System.Collections.Generic;

using System.Windows.Forms;

namespace ECamTools {

static class Program {

/// <summary>

/// Der Haupteinstiegspunkt für die Anwendung.

/// </summary>


static void Main(string[] args) {


Application.SetCompatibleTextRenderingDefault(fals e);

Application.Run(new ECamViewer(args));




after typing "gmcs Program.cs", i get this error:-

Program.cs(3,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
Program.cs(3,1): error CS0246: The type or namespace name `Windows.Forms' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings

After referring this this webpage: http://ubuntuforums.org/showthread.php?t=722869 , i managed to cut my error from 4 to 2.
i am using Mono JIT compiler version
From my intepretation, the errors are all based on the libraries.
What is wrong?

Pls help.


June 5th, 2008, 09:18 AM
Double post, for best help, keep everything together for one issue.