Re: [Vala] vala-list.gnome.org



What exactly don't you understand from the error itself? You have 2
ArrayLists implementations from 2 namespaces "imported" (via using).
One comes from Vala (vala-1.0) which has an internal implementation of
Gee and the other comes from Gee which is what you want to use. You
have to choose which one you want to use and explicitly define which
one via specifying Vala.ArrayList or Gee.ArrayList instead of
ArrayList.

On Wed, Nov 18, 2009 at 3:43 AM, G.S.Alex <sthots gmail com> wrote:
It seems that I've meet some problems with libgee.
The sample code works fine. But when I try to compile Vala toy for
gedit and Vala plugin for anjuta, it syas:

symbol.vala:23.7-23.9: error: The namespace name `Gee' could not be found
using Gee;
     ^^^

I've looked into the makefile.am and find that there is no " --pkg
gee-1.0 ". But when I add it manually ,  errors change to :

utils.vala:40.21-40.37: error: `ArrayList' is an ambiguous reference
between `Vala.ArrayList' and `Gee.ArrayList'
       var results = new ArrayList<string> ();
                         ^^^^^^^^^^^^^^^^^

Could anyone help me ? Thanks a lot.
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




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