[Gtk-sharp-list] Re: Can mcs compile programs against gtk-sharp?
Fri, 12 Apr 2002 21:40:48 -0400 (EDT)
I just realized that if you simply comment out the "DeleteEvent" line, you
can compile HelloWorld.cs under Linux.
Likewise, ButtonApp.cs also compiles with mcs and Linux if you comment out
win.DeleteEvent += new EventHandler (Window_Delete);
btn.Clicked += new EventHandler (btn_click);
Notice that by commenting these out you make the button not do anything.
Therefore, you won't be able to write useful programs yet. However, we
can at least start playing around with Gtk#. Maybe try to implement
From: Mike Kestner <email@example.com>
To: Michael Torrie <firstname.lastname@example.org>
Date: 07 Apr 2002 00:07:51 -0600
> [samples]$ mcs --unsafe -r gdk-sharp.dll -r glib-sharp.dll -r gtk-sharp
> group : 0
> ./HelloWorld.cs(22) error CS0117: `Gtk.Window' does not contain a
> definition for `DeleteEvent'
> Error: Compilation failed
> RESULT: 1
> I do understand why gtk-sharp itself won't compile on mcs, but what
> about this little sample program?
I have not tried the compilation you describe above. I am currently
trying to keep bugzilla stocked with the current bug which stops "make
linux" for Gtk#, and linux execution of win32 built sample programs. The
bug you are describing will eventually hit my radar screen using this
approach, I guess, once the binding compiles and the linux build moves
on to the samples.
If you want to report this as a bug, the best approach is to try to
build it on win32 using mcs with the MS corlib/runtime as well as on
linux, to help isolate whether it is a compiler problem, or a problem in
the corlib/runtime. Then use bugzilla to report it against the