HelloWorld gtk+ app does not compile

5 messages Options
Embed this post
Permalink
nmaarse

HelloWorld gtk+ app does not compile

Reply Threaded More More options
Print post
Permalink
I created the following program(standard gtk+ solution):
using System;
using Gtk;

namespace helloWorld
{
        class MainClass
        {
                public static void Main (string[] args)
                {
                        Application.Init ();
                        MainWindow win = new MainWindow ();
                        win.Title="Niek";
                        win.Show ();
                        Application.Run ();
                }
        }
}

When i Press F8 is get the following error:
uilding: helloWorld (Debug)
Performing main compilation...
/usr/bin/gmcs "/out:/home/niek/Projects/helloWorld/helloWorld/bin/Debug/helloWorld.exe" "/r:System.dll" "-pkg:gtk-sharp-2.0" "-pkg:glib-sharp-2.0" "-pkg:glade-sharp-2.0" "/r:Mono.Posix.dll" /noconfig /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 /define:"DEBUG" /t:exe "/res:/home/niek/Projects/helloWorld/helloWorld/gtk-gui/gui.stetic,gui.stetic" "/home/niek/Projects/helloWorld/helloWorld/gtk-gui/generated.cs" "/home/niek/Projects/helloWorld/helloWorld/MainWindow.cs" "/home/niek/Projects/helloWorld/helloWorld/gtk-gui/MainWindow.cs" "/home/niek/Projects/helloWorld/helloWorld/Main.cs" "/home/niek/Projects/helloWorld/helloWorld/AssemblyInfo.cs"

Build failed. ApplicationName='/usr/bin/gmcs', CommandLine='"@/tmp/tmp755b6627.tmp"', CurrentDirectory='/home/niek/Projects/helloWorld/helloWorld'


What am i doing wrong?
nmaarse

Re: HelloWorld gtk+ app does not compile

Reply Threaded More More options
Print post
Permalink
Forgot to say my os: kubuntu 9.10.
nmaarse

Re: HelloWorld gtk+ app does not compile

Reply Threaded More More options
Print post
Permalink
In reply to this post by nmaarse
My OS: kubuntu9.10, and installed mono-develop from the package manager. I did not do anything more.
Dale E. Moore

Re: HelloWorld gtk+ app does not compile

Reply Threaded More More options
Print post
Permalink
My Ubuntu 9.10 system creates a gtk+ 2.0 project almost exactly like yours. I'm sorry to say it runs fine.
Dale E. Moore

Re: HelloWorld gtk+ app does not compile

Reply Threaded More More options
Print post
Permalink
What I really meant to say was:

 
Dale E. Moore wrote:
My Ubuntu 9.10 system creates a gtk+ 2.0 project almost exactly like yours. I'm sorry to say it runs fine.
I hope this is in some way helpful,
Dale