2010-07-15 18:57, Pedro Lopez-Cabanillas skrev: >> * Testing, testing, testing! That's always appreciated to make sure will >> be 1.1.2 is our best and most stable release so far! In particular, >> please test the new cmake build system, especially if you use a little >> less common platform (i e anything else than Linux and Windows), or you >> feel somewhat responsible for a specific platform. > > Compiling in Windows with VS2008, I've found the following errors: > > rvoice\fluid_rvoice_mixer.c(162) : error C2057: expected constant expression > rvoice\fluid_rvoice_mixer.c(162) : error C2466: cannot allocate an array of > constant size 0 > rvoice\fluid_rvoice_mixer.c(162) : error C2133: 'local_buf' : unknown size > rvoice\fluid_rvoice_mixer.c(337) : error C2057: expected constant expression > rvoice\fluid_rvoice_mixer.c(337) : error C2466: cannot allocate an array of > constant size 0 > rvoice\fluid_rvoice_mixer.c(337) : error C2133: 'bufs' : unknown size > rvoice\fluid_rvoice_mixer.c(630) : error C2057: expected constant expression > rvoice\fluid_rvoice_mixer.c(630) : error C2466: cannot allocate an array of > constant size 0 > rvoice\fluid_rvoice_mixer.c(630) : error C2133: 'bufs' : unknown size > rvoice\fluid_rvoice_mixer.c(724) : error C2057: expected constant expression > rvoice\fluid_rvoice_mixer.c(724) : error C2466: cannot allocate an array of > constant size 0 > rvoice\fluid_rvoice_mixer.c(724) : error C2133: 'bufs' : unknown size
Okay, so after eleven years MSVC still does not support standard C99 features. Oh well, I did a commit which will hopefully solve it. If you like, you can implement a test for SUPPORTS_VLA in cmake (see fluidsynth_priv.h), otherwise we'll just run alloca everywhere. // David _______________________________________________ fluid-dev mailing list fluid-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/fluid-dev