Well, I've tried but I've got the same error. SDL package : SDL-devel-1.2.15-mingw32.tar.gz (copy files from tarball to directories "include", "lib" and "bin").
To correct a "-lcom32dlg" error, I've installed : http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.17/w32api-3.17-1-mingw32-dev.tar.lzma/download (copy files from tarball to directories "include", "lib" and "bin"). >valac --pkg sdl -X -lsdl -X -lsdlmain -X -lmingw32 -X -mwindows --verbose test2.vala gcc -o 'C:/vala\test2' 'C:/vala/test2.vala.c' -mms-bitfields -Ic:/vala/include/glib-2.0 -Ic:/vala/lib/glib-2.0/include -Lc:/vala/lib -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl '-lsdl' '-lsdlmain' '-lmingw32' '-mwindows' c:/vala/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 failed: 1 error(s), 0 warning(s) :-? Thanks :) > Hello, > > 2012/3/20 <[email protected]>: >> Perhaps a basic linkage error but I dont know how to correct :D > > You should be looking at the SDL FAQ for Windows: > http://wiki.libsdl.org/moin.cgi/FAQWindows > > For example this question seems to be exactly what you want (don't > forget -X before each argument): > > I get "Undefined reference to 'WinMain@16'" > Under Visual C++, you need to link with SDLmain.lib. Under the gcc > build environments including Dev-C++, you need to link with the output > of "sdl-config --libs", which is usually: -lmingw32 -lSDLmain -lSDL > -mwindows > _______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
