[Gtk-sharp-list] error compiling helloworld

Alain Perry sensei@quarkup.org
Thu, 08 Jul 2004 10:37:52 +0100

> I compiled and installed mono, mcs, and gtk-sharp with the prefix=/usr. 
> So I don't understand why
> I cann't compile this code.
> $ mcs Hello.cs -r:gtk-sharp
> error CS0006: Cannot find assembly `gtk-sharp'
> Log:
> Compilation failed: 1 error(s), 0 warnings
> What's the problem? I got gtk-sharp.dll in my /usr/lib/mono/gtk-sharp 
> directory.

A little research in the archives of the list would have helped you
found you should use -pkg and not -r.

$ mcs Hello.cs -pkg:gtk-sharp

Alain Perry