[MonoDevelop] MonoDevelop compile error with GtkSourceView

Todd Berman tberman@sevenl.net
Sun, 16 May 2004 14:50:04 -0400


Most likely in your prefix somewhere you have an old
gtksourceview-sharp.dll.

I would check in /usr/lib, or /usr/local/lib.

If you remove this old library, you should be good.

--Todd

On Sun, 2004-16-05 at 22:57 +1000, Tony Tsui wrote:
> Hi,
> 
> I hope this is the appropriate forum to ask about this problem. I am
> trying to compile MonoDevelop 0.3 with the Mono Beta 1 release and hit a
> problem with GtkSourceView. I'm not sure it is a MonoDevelop problem
> since compiling a simple test program using GtkSourceView results in the
> same error. I'm using gtksourceview-0.7 and gtksourceview-sharp-0.2. 
> 
> The MonoDevelop compile error is:
> 
> ././Gui/SourceEditorBuffer.cs(18) error CS0138: The using keyword only
> lets you
> specify a namespace, `GtkSourceView' is a class not a namespace.
> ././Gui/SourceEditorView.cs(20) error CS0138: The using keyword only
> lets you specify a namespace, `GtkSourceView' is a class not a
> namespace.
> ././Gui/SourceEditorDisplayBinding.cs(17) error CS0138: The using
> keyword only lets you specify a namespace, `GtkSourceView' is a class
> not a namespace.
> Compilation failed: 3 error(s), 0 warnings
> 
> 
> I get the same error with the following simple test program:
> 
> using GtkSourceView;
>  
> public class TestGtkSourceView
> {
>         static void Main()
>         {
>  
>         }
> }
> 
> [tony@faith test]$ mcs testGtkSourceView.cs -r:glib-sharp -r:pango-sharp
> -r:atk-sharp -r:gdk-sharp -r:gtk-sharp -r:gnome-sharp
> -r:gtksourceview-sharp -lib:/usr/lib/mono/gtk-sharp
> testGtkSourceView.cs(1) error CS0138: The using keyword only lets you
> specify a namespace, `GtkSourceView' is a class not a namespace.
> Compilation failed: 1 error(s), 0 warnings
> 
> Thanks for any help.
> 
> Tony
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list