You should always include the error message ;-) I suspect you are not telling the compiler to reference System.Windows.Forms:
gmcs hello-winforms.cs -r:System.Windows.Forms Carlos. 2008/12/9 pepe_eloy <[EMAIL PROTECTED]> > > > Thanks Andy for your help. > > I ran the program as you tell me and works! This means the libraries are > installed, but why the program didn't compile? > > I show the code I'm, using > > //Code for hello-winforms.cs > //this file is in /home/proyectos-mono > > using System; > using System.Windows.Forms; > > public class HelloWorld : Form > { > static public void Main () > { > Application.Run (new HelloWorld ()); > } > > public HelloWorld () > { > Text = "Hello Mono World"; > } > } > > Need I to specify the path of libraries? > > Thanks for the help > > José Eloy > > -- > View this message in context: > http://www.nabble.com/I-get-error-compiling-in-ubuntu-tp20786571p20921951.html > Sent from the Mono - WinForms mailing list archive at Nabble.com. > > _______________________________________________ > Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-winforms-list >
_______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list