GNOME Bugzilla – Bug 627412
simple hello world generates wrong c code
Last modified: 2010-08-20 20:14:45 UTC
using 0.9.6/7 and --profile=posix using Posix; [Compact] public class Test { public void test() { stdout.puts ("foo\n"); } } static int main(){ var t = new Test(); t.test(); return 0; } this yields the following errors valac --profile=posix hello.vala hello.vala.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token hello.vala.c:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token hello.vala.c:13: error: expected ‘)’ before ‘*’ token hello.vala.c: In function ‘_vala_main’: hello.vala.c:19: error: ‘Test’ undeclared (first use in this function) hello.vala.c:19: error: (Each undeclared identifier is reported only once hello.vala.c:19: error: for each function it appears in.) hello.vala.c:19: error: ‘t’ undeclared (first use in this function) hello.vala.c:23: error: ‘NULL’ undeclared (first use in this function)
seems this is a duplicate of Bug 618348
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 618348 ***