fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] Compiling with MSVC


From: Pedro Lopez-Cabanillas
Subject: Re: [fluid-dev] Compiling with MSVC
Date: Fri, 3 Apr 2009 17:58:13 +0200
User-agent: KMail/1.9.6 (enterprise 20070904.708012)

On Viernes, Abril 3, 2009, David Henningsson wrote:
> Pedro Lopez-Cabanillas skrev:
> > BTW, the patch for fast MIDI file rendering by David Henningsson also
> > fails under MS compilers.
>
> If you tell me what's wrong, I'll be happy to fix it. I don't use MSVC
> myself.
>
> // David

Here is the output from the compiler for "fluid_synth.c":

..\..\src\fluid_synth.c(357) : error C2143: syntax error : missing ';' 
before 'type'
..\..\src\fluid_synth.c(358) : error C2143: syntax error : missing ';' 
before 'type'
..\..\src\fluid_synth.c(359) : error C2065: 'cont' : undeclared identifier
..\..\src\fluid_synth.c(365) : error C2143: syntax error : missing '{' 
before '*'
..\..\src\fluid_synth.c(366) : error C2371: 'new_fluid_sample_timer' : 
redefinition; different basic types
..\..\src\fluid_synth.h(213) : see declaration of 'new_fluid_sample_timer'
..\..\src\fluid_synth.c(378) : warning C4133: 'return' : incompatible types - 
from 'fluid_sample_timer_t *' to 'int *'

The problem is that GCC is C99 compliant, but MSVC is not. It has only some 
extensions on top of ANSI C. And your patch follows the C99 dialect.

BTW, you can download the compiler from MS without cost
http://www.microsoft.com/express/vc/

Regards,
Pedro




reply via email to

[Prev in Thread] Current Thread [Next in Thread]