[Gtk-sharp-list] Re: [Mono-devel-list] Mono on Windows HOWTO
Brian Rose
lists@brianrose.net
Mon, 25 Oct 2004 10:11:39 -0400
Brian Rose wrote:
>
> I created the source program (listed previously) because it seemed simple
> enough (not too many GUI "Hello World" apps out there). It is based on
> GTK#, which I understand is installed with the Windows installer. When I
> compile it I get the following error...
>
> Mono version 1.0.1 Build 1
> Prepending 'C:\PROGRA~1\MONO-1~1.2\bin' to PATH
>
> C:\cygwin\home\brose\bmp2disp>mcs gui.cs
> gui.cs(20) error CS0246: Cannot find type `DeleteEventArgs'
> gui.cs(4) error CS0246: The namespace `Gtk' can not be found (missing
> assembly reference?)
> Try using -r:gtk-sharp
> gui.cs(5) error CS0246: The namespace `GtkSharp' can not be found
> (missing assembly reference?)
> Try using -r:gtk-sharp
> gui.cs(7) error CS0246: The namespace `System.Drawing' can not be found
> (missing assembly reference?)
> Try using -r:System.Drawing
> Compilation failed: 4 error(s), 0 warnings
>
> So I try it with the references...
>
> C:\cygwin\home\brose\bmp2disp>mcs -r:gtk-sharp -r:System.Drawing gui.cs
> error CS0006: Cannot find assembly `gtk-sharp'
> Log:
>
> Compilation failed: 1 error(s), 0 warnings
>
> So how do I find the gtk-sharp assembly or see what assemblies are
> installed?
>
I tried installing the GTK library with the Win32 installer from
http://gtk-sharp.sourceforge.net/index.html . I still get the same error.
How do I find out which assemblies are installed and where they are?
I assume that I can use the -lib:PATH to add the library path on the
command line, but how do I find out where this installer put the assembly?
Is it a .dll a .lib?