gtk-sharp
gtk-sharp copied to clipboard
Compile error: ./TestRange.cs(62,13): error CS0030: Cannot convert type `Gtk.VScale' to `System.Range'
Hey there,
Installed policy.2.10.gtk-dotnet.dll into the gac (/usr/lib/mono/gac)
make[2]: Leaving directory '/home/Temp/rbt/gtk-sharp-2.12.45/gtkdotnet'
make[1]: Leaving directory '/home/Temp/rbt/gtk-sharp-2.12.45/gtkdotnet'
Making install in sample
make[1]: Entering directory '/home/Temp/rbt/gtk-sharp-2.12.45/sample'
Making install in test
make[2]: Entering directory '/home/Temp/rbt/gtk-sharp-2.12.45/sample/test'
/usr/bin//mcs -out:WidgetViewer.exe -r:../../glib/glib-sharp.dll -r:../../pango/pango-sharp.dll -r:../../atk/atk-sharp.dll -r:../../gdk/gdk-sharp.dll -r:../../gtk/gtk-sharp.dll ./TestCheckButton.cs ./TestColorSelection.cs ./TestRadioButton.cs ./TestRange.cs ./TestStatusbar.cs ./TestDialog.cs ./TestFlipping.cs ./TestSizeGroup.cs ./TestCombo.cs ./TestComboBox.cs ./WidgetViewer.cs
./TestCombo.cs(17,14): warning CS0612: Gtk.Combo' is obsolete ./TestRange.cs(35,6): error CS0104:
Range' is an ambiguous reference between System.Range' and
Gtk.Range'
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
/home/Temp/rbt/gtk-sharp-2.12.45/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
./TestRange.cs(35,13): error CS0030: Cannot convert type Gtk.HScale' to
System.Range'
./TestRange.cs(42,6): error CS0104: Range' is an ambiguous reference between
System.Range' and Gtk.Range' /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) /home/Temp/rbt/gtk-sharp-2.12.45/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error) ./TestRange.cs(42,13): error CS0030: Cannot convert type
Gtk.HScrollbar' to System.Range' ./TestRange.cs(62,6): error CS0104:
Range' is an ambiguous reference between System.Range' and
Gtk.Range'
/usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
/home/Temp/rbt/gtk-sharp-2.12.45/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
./TestRange.cs(62,13): error CS0030: Cannot convert type Gtk.VScale' to
System.Range'
./TestCombo.cs(31,20): warning CS0612: `Gtk.Combo' is obsolete
Compilation failed: 6 error(s), 2 warnings
make[2]: *** [Makefile:502: WidgetViewer.exe] Error 1
make[2]: Leaving directory '/home/Temp/rbt/gtk-sharp-2.12.45/sample/test'
make[1]: *** [Makefile:440: install-recursive] Error 1
make[1]: Leaving directory '/home/Temp/rbt/gtk-sharp-2.12.45/sample'
make: *** [Makefile:454: install-recursive] Error 1
This may be due to my system running the latest software; gtk-sharp is already +4 years old of the last release. :(
But if someone may find some time in the future, it would be nice if gtk2 can remain supported. Note that pygobject, ruby-gtk3, and most of the GNOME apps work fine on my system, so I doubt it is related to my system as such and thus must be related to something within gtk-sharp. I am a noob when it comes to C/C++/C# though.