[Vala] The name `Gee' does not exist



Hi all,

sorry if I bother you with newbie questions, but I am trying to
understand Vala as best as I can.

I am trying to use Gee types in a wrapper for SQlite, so to have dynamic
mapping between column names and values.

I then tried this little code:

using GLib;
public class test : Object
{
  public void main(string[] args)
  {
    var map = new Gee.HashMap<string, Object>(GLib.str_hash,
GLib.str_equal);
  }
}


I copied the declaration from the tutorial.
When I compile it I get an error:


$ valac -o gee gee.vala 
gee.vala:7.17-7.19: error: The name `Gee' does not exist in the context
of `test.main'
gee.vala:7.7-7.9: error: var declaration not allowed with non-typed
initializer
Compilation failed: 2 error(s), 0 warning(s)


It seems the only type supported is List (from the List sample on the
homepage). Am I missing a compilation switch or something?

Thanks.

P.S.: I would like to help writing the manual (once I get the
basics... :) . What would be the best method to do so? I saw some (quite
empty) xml in the vala source dir. What's the format used?


-- 
Alessandro Pellizzari





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