Re: [Vala] public class Foo : List<Bar>
- From: Luca Bruno <lethalman88 gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] public class Foo : List<Bar>
- Date: Tue, 26 Nov 2013 09:28:47 +0100
On 26/11/2013 05:10, banjo wrote:
bash$ valac --pkg gtk+-3.0 classtest.vala
classtest.vala.c: In function ‘node_list_new’:
classtest.vala.c:72:9: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
self = (NodeList*) g_list_new ();
^
classtest.vala.c: In function ‘main’:
classtest.vala.c:297:2: warning: ‘g_type_init’ is deprecated (declared
at /usr/include/glib-2.0/gobject/gtype.h:669) [-Wdeprecated-declarations]
g_type_init ();
^
/tmp/ccXKn8dn.o: In function `node_list_new':
classtest.vala.c:(.text+0xe): undefined reference to `g_list_new'
collect2: error: ld returned 1 exit status
error: cc exited with status 256
Compilation failed: 1 error(s), 0 warning(s)
... so i guess it isn't allowed?
GLib List is very tricky in C and has very tricky bindings, I wouldn't
even try to inherit from it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]