Wow, those are definitely not expected.  I just checked out a fresh copy and it built fine.  You might try rebuilding the entire solution or check out a different copy and reapply your patches to the new copy.

On 10/3/2013 2:40 AM, Lasse Steen Bohnstedt wrote:
Uncertain whether this is to be expected because of the state of affairs right now (in the midst of implementing last fixes for 2.0.5.)?
But anyway: Read ahead if relevant, otherwise dismiss.

I have cleaned the project, waited for completion, then shut down visual studio.
Then updated svn to #12639.
Reopened visual studio, swapped configuration twice (to force-update IntelliSense), waited for completion and then shut down visual studio.
Reopened visual studio, build solution, browsed through all errors and warnings.

There are 4 kinds of errors.


============
1st simple kind:
============

These:
16>..\..\..\lib-src\libsndfile\src\ogg.c(63) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
16>..\..\..\lib-src\libsndfile\src\file_io.c(41) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
16>..\..\..\lib-src\libsndfile\src\audio_detect.c(26) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
20>..\..\..\lib-src\libmad\decoder.c(33) : fatal error C1083: Cannot open include file: 'sys/wait.h': No such file or directory

And this:
25>..\..\..\lib-src\FileDialog\config.h(1) : fatal error C1017: invalid integer constant expression
about this portion:
   #if 
   #define HAVE_GTK 1
   #else
   #undef HAVE_GTK
   #endif


=================
2nd more weird kind:
=================

I have more than 100 build errors (and warnings) about missing lrint and lrintf functions.
The first is in lib-src\sbsms\src\utils.h line 41.


=============================================================
3rd kind, that is probably related to a lot of warnings about redefined macros:
=============================================================

These errors:
1 x 16>..\..\..\lib-src\libsndfile\src\aiff.c(960) : error C2059: syntax error : '{'
1 x 16>..\..\..\lib-src\libsndfile\src\aiff.c(960) : error C2146: syntax error : missing ';' before identifier 'sf_min_y2'
4 x 16>..\..\..\lib-src\libsndfile\src\aiff.c(960) : error C2065: 'sf_min_y2' : undeclared identifier
3 x 16>..\..\..\lib-src\libsndfile\src\aiff.c(960) : error C2065: 'sf_min_x2' : undeclared identifier
1 x 16>..\..\..\lib-src\libsndfile\src\aiff.c(960) : error C2059: syntax error : ')'
about this line:
comm_fmt->size = SF_MIN (sizeof (psf->u.scbuf), make_size_t (comm_fmt->size)) ;
Following this more lines go awry probably because a {} pair gets choked upon.

And then another macro line gone wrong:
1 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : error C2059: syntax error : '{'
1 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : warning C4013: 'typeof' undefined; assuming extern returning int
1 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : error C2146: syntax error : missing ';' before identifier 'sf_min_y2'
4 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : error C2065: 'sf_min_y2' : undeclared identifier
3 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : error C2065: 'sf_min_x2' : undeclared identifier
2 x 16>..\..\..\lib-src\libsndfile\src\sd2.c(552) : error C2059: syntax error : ')'
it's this line:
read_str (rsrc->rsrc_data, str_offset + 1, name, SF_MIN (SIGNED_SIZEOF (name), slen + 1)) ;
Following this many more lines fail.

And another batch of errors (probably from the two macros in the line):
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : '{'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : warning C4013: 'typeof' undefined; assuming extern returning int
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2146: syntax error : missing ';' before identifier 'sf_max_y1'
4 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2065: 'sf_max_y1' : undeclared identifier
3 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2065: 'sf_max_x1' : undeclared identifier
2 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : ')'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : '{'
2 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : ')'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2143: syntax error : missing ')' before '->'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2143: syntax error : missing '{' before '->'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : '->'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : ')'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : 'type'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2143: syntax error : missing '{' before '<'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : '<'
1 x 16>..\..\..\lib-src\libsndfile\src\ima_oki_adpcm.c(95) : error C2059: syntax error : '}'
etc, etc....
about this line:
state->step_index = SF_MIN (SF_MAX (state->step_index, 0), state->max_step_index) ;
And the next line goes wrong too because of it.

Another bunch of similar errors and warnings (12) probably caused by macro SF_MAX in this line 358 of libsndfile\src\command.c:
peak [0] = SF_MAX (peak [0], psf->peak_info->peaks [k].value) ;
that causes following lines to fail too.

Another bunch of similar errors and warnings (11) probably caused by macro SF_MIN in this line 358 of libsndfile\src\command.c:
size = SF_MIN (datasize, bc_min_size ((const SF_BROADCAST_INFO *) psf->broadcast_16k)) ;
that cause the following lines to fail too.


====================
4th kind, just plain weird:
====================

This:
16>..\..\..\lib-src\libsndfile\src\strings.c(148) : error C2065: '__func__' : undeclared identifier
about this line:
psf_log_printf (psf, "%s : SFE_STR_BAD_TYPE\n", __func__) ;

And these:
16>..\..\..\lib-src\libsndfile\src\common.c(1304) : error C2079: 'tv' uses undefined struct 'timeval'
16>..\..\..\lib-src\libsndfile\src\common.c(1306) : error C2224: left of '.tv_sec' must have struct/union type
16>..\..\..\lib-src\libsndfile\src\common.c(1306) : error C2224: left of '.tv_usec' must have struct/union type
about this portion of code:
#if HAVE_GETTIMEOFDAY
struct timeval tv ;
gettimeofday (&tv, NULL) ;
value = tv.tv_sec + tv.tv_usec ;

These:
20>..\..\..\lib-src\libmad\layer3.c(1648) : error C2054: expected '(' to follow 'inline'
20>..\..\..\lib-src\libmad\layer3.c(1648) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1648) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1648) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1648) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1649) : error C2085: 'sdctII' : not in formal parameter list
20>..\..\..\lib-src\libmad\layer3.c(1649) : error C2143: syntax error : missing ';' before '{'
about this portion:
   static inline
   void sdctII(mad_fixed_t const x[18], mad_fixed_t X[18])

And these:
20>..\..\..\lib-src\libmad\layer3.c(1693) : error C2054: expected '(' to follow 'inline'
20>..\..\..\lib-src\libmad\layer3.c(1693) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1693) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1693) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1693) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1694) : error C2085: 'dctIV' : not in formal parameter list
20>..\..\..\lib-src\libmad\layer3.c(1694) : error C2143: syntax error : missing ';' before '{'
about this portion:
   static inline
   void dctIV(mad_fixed_t const y[18], mad_fixed_t X[18])
   {

And these:
20>..\..\..\lib-src\libmad\layer3.c(1737) : error C2054: expected '(' to follow 'inline'
20>..\..\..\lib-src\libmad\layer3.c(1737) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1737) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1737) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(1737) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(1738) : error C2085: 'imdct36' : not in formal parameter list
20>..\..\..\lib-src\libmad\layer3.c(1738) : error C2143: syntax error : missing ';' before '{'
about this portion:
   static inline
   void imdct36(mad_fixed_t const x[18], mad_fixed_t y[36])
   {

And these:
20>..\..\..\lib-src\libmad\layer3.c(2276) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(2276) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(2277) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(2277) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(2277) : error C2057: expected constant expression
20>..\..\..\lib-src\libmad\layer3.c(2277) : error C2466: cannot allocate an array of constant size 0
20>..\..\..\lib-src\libmad\layer3.c(2277) : error C2087: 'sample' : missing subscript
20>..\..\..\lib-src\libmad\layer3.c(2278) : error C2085: 'III_overlap_z' : not in formal parameter list
20>..\..\..\lib-src\libmad\layer3.c(2278) : error C2143: syntax error : missing ';' before '{'
about this:
   static inline
   void III_overlap_z(mad_fixed_t overlap[18],
  mad_fixed_t sample[18][32], unsigned int sb)
   {


// Lasse


"There is a crack in everything, that's how the light gets in." - L. Cohen


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk


_______________________________________________
audacity-devel mailing list
audacity-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-devel