[Gtk-sharp-list] Hello world can't find Gtk???

yoros@wanadoo.es yoros@wanadoo.es
Wed, 11 Dec 2002 06:42:25 +0100

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#)
> 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.
> 	when I run mcs helloworld.cs I get 3 errors as follows:
> 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
> 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 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

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (GNU/Linux)