[Gtk-sharp-list] Re: Can mcs compile programs against gtk-sharp?
12 Apr 2002 20:12:17 -0600
Oddly enough, mcs.exe on windows compiles the HelloWorld.cs program as
is without problems. The resulting exe doesn't run on my linux mono
snapshot, but then the Button.exe one never did either.=20
On Fri, 2002-04-12 at 19:40, Daniel Carrera wrote:
> I just realized that if you simply comment out the "DeleteEvent" line, yo=
> can compile HelloWorld.cs under Linux.
> Likewise, ButtonApp.cs also compiles with mcs and Linux if you comment ou=
> the lines:
> win.DeleteEvent +=3D new EventHandler (Window_Delete);
> btn.Clicked +=3D 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 <firstname.lastname@example.org>
> To: Michael Torrie <email@example.com>
> Cc: 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
> > HelloWorld.cs
> > 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
> appropriate module.
Public key available from http://students.cs.byu.edu/~torriem
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----