[Gtk-sharp-list] latest cvs gtk-sharp compile error
Philip Southam
philip@philipsoutham.net
Fri, 13 Feb 2004 12:29:55 -0800
While compiling the latest version of gtk-sharp from cvs I encountered this error (by the why, I'm running Suse Linux 9.0):
mcs -g -out:print.exe -L ../glib -L ../pango -L ../atk -L ../gdk -L ../gtk -L ../art -L ../gnome -L ../glade -L ../vte -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r art-sharp.dll -r gnome-sharp.dll -r glade-sharp.dll -r vte-sharp.dll -r System.Drawing PrintSample.cs
Compilation succeeded
mcs -g -out:glade-viewer.exe -L ../glib -L ../pango -L ../atk -L ../gdk -L ../gtk -L ../art -L ../gnome -L ../glade -L ../vte -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r art-sharp.dll -r gnome-sharp.dll -r glade-sharp.dll -r vte-sharp.dll -r System.Drawing GladeViewer.cs
GladeViewer.cs(39) error CS0029: Cannot convert implicitly from `Gtk.Widget[]' to `GLib.List'
Compilation failed: 1 error(s), 0 warnings
make[1]: *** [glade-viewer.exe] Error 1
make[1]: Leaving directory `/home/philip/devel/mono/cvs/gtk-sharp/sample'
make: *** [binding] Error 1
I edited the problematic line 39 in sample/GladeView.cs from:
GLib.List l = gxml.GetWidgetPrefix ("");
to this:
GLib.List l = (GLib.List) gxml.GetWidgetPrefix ("");
and issued the following command:
>mcs -g -out:sample/glade-viewer.exe -L ../glib -L ../pango -L ../atk -L ../gdk -L ../gtk -L ../art -L ../gnome -L ../glade -L ../vte -r glib-sharp.dll -r pango-sharp.dll -r atk-sharp.dll -r gdk-sharp.dll -r gtk-sharp.dll -r art-sharp.dll -r gnome-sharp.dll -r glade-sharp.dll -r vte-sharp.dll -r System.Drawing sample/GladeViewer.cs
I then re-ran make and everything compiled fine. Is this a bug or a problem with something on my end?
Philip