Re: [Vala] The name `Gee' does not exist



Il giorno mar, 15/01/2008 alle 14.20 +0100, Alessandro Pellizzari ha
scritto:
Il giorno mar, 15/01/2008 alle 14.09 +0100, foo bar ha scritto:

Then you have to pass "-pkg gee-1.0" to valac.
Gee is not installed with valac and so you have to copy the
*.vapi-File from vala-0.1-5/vapi/ to your vapi-directory.

Thank you very much! It worked.

I spoke too early... :/

using Gee;
using GLib;

public class test : Object
{
  static void main(string[] args)
  {       
    HashMap<string, string> a = new HashMap<string, string>();
    a["foo"] = "bar";
    stdout.printf("%s\n", a["foo"]);
  }
}


$ valac --pkg gee-1.0 -o gee gee.vala -X "-I/usr/include/vala-1.0/"
gee.c: In function 'test_main':
gee.c:21: warning: assignment makes pointer from integer without a cast
/tmp/ccDuj1gf.o: In function `test_main':
gee.c:(.text+0x4f): undefined reference to `gee_hash_map_new'
gee.c:(.text+0x6d): undefined reference to `gee_hash_map_set'
gee.c:(.text+0x87): undefined reference to `gee_hash_map_get'
collect2: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)


It seems like libvala got compiled without gee. Am I right?


-- 
Alessandro Pellizzari





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