Re: [Vala] c#/mono to vala converter

2012-03-19 Thread Tal Hadad
In Google search, I get only 4 irrelevant results. Don't waste your time for searching that kind of thing. Vala logic is far different from .Net logic, so even if there were such thing, it was better to convert it manually. As far as I can see that, only class methods(head only), structures, prope

[Vala] Boxed type generics

2012-03-19 Thread Stephan Hilb
Hello, I'd like to do something like the following (somewhat oversimplified): public T increment (T number) { return (double?) number + 1; } public static void main () { stdout.printf("%f\n", increment (4.7)); } Unfortunately the C-compiler complains about not being able to conve

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

2012-03-19 Thread Raum
Hi, I'm testing Vala and I think I didn't understand how to use package with it... I want to use SDL and SDLNet but I've got an "undefined reference"... Here is my test program : using GLib; using SDL; int main (string[] args) { SDL.init( 0 ); SDL.quit( ); stdou

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

2012-03-19 Thread Raum
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 1 exit status error: cc exited with status 1 Compilation

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