[Gtk-sharp-list] Re: Can mcs compile programs against gtk-sharp?

Michael Torrie torriem@cs.byu.edu
12 Apr 2002 20:12:17 -0600


--=-f8phkTrGrRykKkJQ6eEk
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

Michael


On Fri, 2002-04-12 at 19:40, Daniel Carrera wrote:
> I just realized that if you simply comment out the "DeleteEvent" line, yo=
u
> can compile HelloWorld.cs under Linux.
>=20
> Likewise, ButtonApp.cs also compiles with mcs and Linux if you comment ou=
t
> the lines:
>=20
> win.DeleteEvent +=3D new EventHandler (Window_Delete);
> btn.Clicked +=3D new EventHandler (btn_click);
>=20
>=20
> 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
> WinForms?
>=20
>=20
> Cheers,
> Daniel.
>=20
>=20
> From: Mike Kestner <mkestner@speakeasy.net>
> To: Michael Torrie <torriem@cs.byu.edu>
> Cc: gtk-sharp-list@ximian.com
> Date: 07 Apr 2002 00:07:51 -0600
>=20
> > [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?
>=20
> 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.
>=20
> 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.
>=20
> Mike
--=20
Public key available from http://students.cs.byu.edu/~torriem



--=-f8phkTrGrRykKkJQ6eEk
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

iD8DBQA8t5QB9bTmAa2MOJ8RAjq+AJ9PDOzl3hQzpNPjc9SIaHYS+9qoIACdGEou
sNxjmxBZwP4C3ksHerk+ywA=
=k6q+
-----END PGP SIGNATURE-----

--=-f8phkTrGrRykKkJQ6eEk--