Re: [Vala] undefined reference to 'SDL_Init' and/or 'WinMain@16' (under Windows)

2012-03-19 Thread Sam Thursfield
Hi On Mon, Mar 19, 2012 at 3:06 PM, wrote: > Well, I've corrected my command line with -X option : > --- >>valac --pkg sdl -X -lsdl test2.vala > c:/vala-0.12.0/lib/libmingw32.a(main.o):main.c:(.text+0xbd): undefined > reference to `WinMain@16' > collect2: ld returned

Re: [Vala] Vala on Windows/Mac OS

2011-12-18 Thread Sam Thursfield
Hi David On Sat, Dec 17, 2011 at 11:46 PM, David Gomes wrote: > I would like to know the status of Vala in other operating systems (besides > Linux). How well does it work? Vala's compiler works fine on Windows. The C code can be compiled with mingw gcc. > What about its bindings (Gtk, for exam

[Vala] Fwd: Debug logging

2011-10-18 Thread Sam Thursfield
Hi Has anyone yet solved the problem of how to access macro-based C library logging systems from Vala? This is important when writing plugins for libraries like Grilo, GStreamer and even GLib-based libraries. The problem is that defining log domains/categories is generally done with C macros

Re: [Vala] Inserting GTypes into a Clutter.ListModel

2011-09-13 Thread Sam Thursfield
On Tue, Sep 13, 2011 at 2:15 PM, tomw wrote: > Hi, > > trying to set up a Clutter.ListModel like according to [1]: > > var model = new Clutter.ListModel (3, G_TYPE_STRING, "string_a", > G_TYPE_STRING, "string_b", >                                      G_TYPE_INT,    "id"); > failed as the GTypes

Re: [Vala] Platform-specific .vala code and 'make dist'

2011-06-30 Thread Sam Thursfield
On Thu, Jun 30, 2011 at 11:30 AM, Andrea Bolognani wrote: > On Thu, Jun 30, 2011 at 11:21:41AM +0100, Sam Thursfield wrote: > >> Hi everyone >> I've just run across an interesting and unexpected problem, which I'd >> like to share in case anyone has considered

[Vala] Platform-specific .vala code and 'make dist'

2011-06-30 Thread Sam Thursfield
Hi everyone I've just run across an interesting and unexpected problem, which I'd like to share in case anyone has considered it before or to warn any future victims. In a nutshell: 1. 'make dist' generates a platform-independent tarball which can be compiled on any platform 2. Vala should not be

Re: [Vala] extern function prototype gets rearranged

2011-04-18 Thread Sam Thursfield
Hi On Sat, Apr 16, 2011 at 7:57 PM, Abderrahim Kitouni wrote: > Hello, > >                  في ج، 15-04-2011 عند 22:34 +0100 ، كتب Sam Thursfield: >> Hi! >> I've encountered a weird bug/feature which is breaking everything. >> [...] >> compile this, a

[Vala] extern function prototype gets rearranged

2011-04-15 Thread Sam Thursfield
Hi! I've encountered a weird bug/feature which is breaking everything. Here's a simple testcase: namespace Test { public extern struct Value { void *ptr; public extern unowned GLib.Date get_date (); } int main(string args[]) { Test.Value v = Test.Value(); Date n

[Vala] [PATCH] Moving functions between Classes in Metadata files

2010-08-19 Thread Sam Thursfield
On Sun, Jul 11, 2010 at 10:46 PM, tecywiz121 wrote: > Hey! > > I've been working on binding chipmunk, a physics engine, for the past > week and I've run into a bunch of snags.  Chipmunk is not a glib > library, and it doesn't exactly get parsed well by gen-introspect but it > does a enough of a go

[Vala] Warn when invalid attributes are encountered

2010-06-08 Thread Sam Thursfield
Hi Vala people! Currently I can write code in my vapi files like [CCode (pasty_is_ripe="dogs")] and not get any warnings. I am currently trying to write some vapi and having real trouble getting parameters correct, various combinations of the array_* attributes are not working at all. I figured a

[Vala] Bindings generation where the namespace doesn't match the C prefix

2010-05-28 Thread Sam Thursfield
Hi everyone! I'm getting some vala hacking done at the moment, (I'm impressed with how well everything works by the way, you are master craftsmen) I'm trying to generate bindings for the latest couchdb-glib and I'm confused how the existing bindings have been generated. How do you convince vapigen