Advertisement
rotrevrep

Untitled

Sep 24th, 2013
2,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.74 KB | None | 0 0
  1. void main(string[] args){
  2.     var test = new Test();
  3. }
  4.  
  5. public class Test : HashTable<string,string>
  6. {
  7.     public Test(){
  8.         base(str_hash,str_equal);
  9.     }
  10. }
  11.  
  12. /*
  13. /home/yannick/Documents/main.vala.c: In function ‘test_new’:
  14. /home/yannick/Documents/main.vala.c:42:2: error: too few arguments to function ‘g_hash_table_new_full’
  15.   self = (Test*) g_hash_table_new_full (_tmp0_, _tmp1_);
  16.   ^
  17. In file included from /usr/include/glib-2.0/glib.h:52:0,
  18.                  from /home/yannick/Documents/main.vala.c:5:
  19. /usr/include/glib-2.0/glib/ghash.h:62:13: note: declared here
  20.  GHashTable* g_hash_table_new_full          (GHashFunc       hash_func,
  21.              ^
  22. error: cc exited with status 256
  23. Compilation failed: 1 error(s), 1 warning(s)
  24.  
  25. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement