[Gtk-sharp-list] Hello world can't find Gtk???
yoros@wanadoo.es
yoros@wanadoo.es
Wed, 11 Dec 2002 06:42:25 +0100
--PMULwz+zIGJzpDN9
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Dec 10, 2002 at 11:22:54PM -0600, Doug wrote:
> Hi Everybody,
> First let me say this stuff looks way cool!!! (Kudo's to all building
> mono and gtk#)
>=20
> I saw the helloworld.cs gui app
> (http://gtk-sharp.sourceforge.net/gtk-hello-world.png) and tried to make
> it myself. Mono(0.17) is installed and working fine, and I think Gtk# is
> as well (at least it didn't error when I ran the usual
> configure/make/makeinstall). I'm running a fairly vanilla install of
> redhat 8.0.
>=20
> when I run mcs helloworld.cs I get 3 errors as follows:
>=20
> HelloWorld.cs(16) error CS0246: Cannot find type 'Gtk.Window'
> HelloWorld.cs(13) error CS0161: Not all code paths return a value
> HelloWorld.cs(26) error CS0246: Cannot find type 'SignalArgs'
>=20
> =20
> Should this no longer work or am I doing something wrong??? I'm pretty
> new to C#, so I could just be making a stupid mistake I suppose. Any
> help would be great!
You need to tell the compiler what assemblies are you using. In this
case you ar using, at least, gtk-sharp and gdk-sharp assemblies. You
must add "-r gtk-sharp -r gdk-sharp" in the arguments of mcs for telling
it that you are using that assemblies.
See you,
Pedro
--=20
Pedro Martinez Juli=E1
\ yoros@terra.es
)| yoros@wanadoo.es
/ http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information: pub 1024D/74F1D3AC
Key fingerprint =3D 8431 7B47 D2B4 5A46 5F8E 534F 588B E285 74F1 D3AC
--PMULwz+zIGJzpDN9
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE99tBBWIvihXTx06wRAjk3AJ92RV7lRExX2DDSIyflNVVM1WLv1QCghznn
JglZAWZiKTiN5uJYNXrMpgA=
=0BBQ
-----END PGP SIGNATURE-----
--PMULwz+zIGJzpDN9--