[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Compiling fluidsynth 1.1.1 with libsndfile support on Wi
From: |
Pedro Lopez-Cabanillas |
Subject: |
Re: [fluid-dev] Compiling fluidsynth 1.1.1 with libsndfile support on Windows |
Date: |
Tue, 16 Mar 2010 20:46:22 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
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
Re: [fluid-dev] Compiling fluidsynth 1.1.1 with libsndfile support on Windows,
Pedro Lopez-Cabanillas <=