On Saturday, March 6, 2010, Felix Krause wrote:
> - Now I had a strange syntax error while compiling. VS said:
> 1>..\..\src\fluid_cmd.c(472) : error C2143: syntax error :
> missing ';'
> before 'type' 1>..\..\src\fluid_cmd.c(473) : error C2143: syntax error :
> missing ';' before 'type' I don't really know what this error is about, as
> everything looks fine. However, I found a workaround (only do this if you
> get the same error!): double clicking on the error will take you to those
> two lines in fluid_cmd.c: int channum = atoi(av[0]);
> int value = atoi(av[1]);
> change them into:
> channum = atoi(av[0]);
> value = atoi(av[1]);
> now right behind the "{" in the same function, add:
> int channum;
> int value;
Your fix is correct. In ANSI C (C90), all declarations must precede statements
in every block. MSVC follows this rule. The fix is now committed to the
repository.
Regards,
Pedro
_______________________________________________
fluid-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fluid-dev