[MonoDevelop] MonoDevelop compile error with GtkSourceView

Tony Tsui ttsui@bigfoot.com
Sun, 16 May 2004 22:57:29 +1000


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