Re: Extension compile error



doesn't look like a linking issue. what's the faulty line (73) in your
file ?

s

On Sun, 2007-10-21 at 22:28 +0200, Lorenzo Milesi wrote:
> Hi
> 
> I'm trying to write an extension but I'm running into troubles.
> 
> I've taken the following lines from CameraFileSelectionDialog.cs
> 
> TagMenu tagmenu = new TagMenu (null, MainWindow.Toplevel.Database.Tags);
> tagmenu.NewTagHandler = HandleNewTagSelected;
> 
> but if I place those lines in my .cs, make will return the following error:
> $ make
> gmcs -target:library MetaPixelExport.cs -pkg:f-spot
> -pkg:gnome-vfs-sharp-2.0 -pkg:gtk-sharp -r:Mono.Posix
> -resource:MetaPixelExport.addin.xml
> MetaPixelExport.cs(74,33): error CS1502: The best overloaded method
> match for `Gtk.MenuShell.Append(Gtk.Widget)' has some invalid arguments
> MetaPixelExport.cs(74,33): error CS1503: Argument 1: Cannot convert type
> `Gtk.MenuItem' to `Gtk.Widget'
> 
> did I miss any linking?
> 
> Thanks.
> maxxer
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]