Hi,
2009/11/7 aaron andersen aaron.r.ander...@gmail.com:
I believe there is an error in the SDLNet bindings.
I'm using vala 0.7.7 and I modified the sdl-net.vapi from this:
[CCode (cname=SDLNet_ResolveHost)]
public static int from_host(IPAddress address, string host, uint16 port);
to
hi
I'd like to play with vala a little bit, but I guess there is a fundamental
problem with my really boring example.
$ cat hello.vala # taken from valas website
using GLib;
public class Test.HelloObject : GLib.Object {
public static int main(string[] args) {
ben nukel wrote:
$ valac hello.vala
valac: symbol lookup error: valac: undefined symbol:
vala_code_context_set_experimental_non_null
any ideas what's wrong here?
Do you have two different Vala versions installed, e.g. one from
a repository and one built from source? It seems to use the
Or if you use the 'vala' package from the PPA then you must deinstall
the old 'valac' and 'libvala0' packages of the original repository.
Best regards,
Frederik
___
Vala-list mailing list
Vala-list@gnome.org
Hi,
I wanna check if a file has been changed, and then take some action.
However I am not getting the trick with the signal connection.
the code below returns:
(process:18773): GLib-GObject-WARNING **: IA__g_object_connect: invalid
signal spec changed
well I have checked the specs of GLIB and
Johan wrote:
Hi,
I wanna check if a file has been changed, and then take some action.
However I am not getting the trick with the signal connection.
the code below returns:
(process:18773): GLib-GObject-WARNING **: IA__g_object_connect: invalid
signal spec changed
well I have checked the
Hi Andrea,
Thanks for the fast reply.
I am still doing something wrong, I changed this:
public virtual signal void handler2 (...)
monitor.changed.connect((void) this.handler2);
and get the following:
macro g_signal_connect requires 4 arguments, but only 3 given
That is how the C-code looks
you right. I forgot that I've installed vala via apt-get first; before
installing from sources (0.7.8).
But the problem is, even after
$ sudo apt-get remove valac
$ sudo apt-get autoremove
and
$ cd ~/install/vala-0.7.8 sudo make uninstall
and finally ...
$ sudo find /usr -iname 'vala'
ben nukel wrote:
$ valac
valac: error while loading shared libraries: libvala.so.0: cannot open
shared object file: No such file or directory
although the library is here:
$ ls -al /usr/local/lib/libvala.so.0
lrwxrwxrwx 1 root root 16 2009-11-07 08:03 /usr/local/lib/libvala.so.0
Maybe
aargh ;-)
thanks
2009/11/7 Frederik scumm_fr...@gmx.net
ben nukel wrote:
$ valac
valac: error while loading shared libraries: libvala.so.0: cannot open
shared object file: No such file or directory
although the library is here:
$ ls -al /usr/local/lib/libvala.so.0
lrwxrwxrwx 1
Hi Joan,
Try this:
Signal.connect(monitor, changed, (GLib.Callback)handler2, monitor);
Nicolas.
___
Vala-list mailing list
Vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list
On Sat, Nov 07, 2009 at 11:34:22 +0100, JM wrote:
I heard that structs are stack-allocated and classes are
heap-allocated.
You heard right. And that applies to arrays as well. Array of structs
contains those structs directly, array of classes contains pointers.
Would there be an
On Sat, Nov 07, 2009 at 13:16:02 +0100, Johan wrote:
Hi Andrea,
Thanks for the fast reply.
I am still doing something wrong, I changed this:
public virtual signal void handler2 (...)
No 'signal' keyword here. A handler is just a function. It must have
a signature that matches the signal it
On Sat, Nov 07, 2009 at 14:47:16 +0100, Nicolas wrote:
Signal.connect(monitor, changed, (GLib.Callback)handler2, monitor);
No. That won't work without some magic applied to handler2, because the call
signature for signal handlers is different from regular methods. The normal
syntax:
14 matches
Mail list logo