[Speex-dev] Compile error (svn 10743)

=?ks_c_5601-1987?B?vNW9wr/4?= ssw0725 at ncsoft.net
Thu Jan 19 18:42:15 PST 2006


Sorry.
 
First error file is not "modes.c" but "modes_noglobals.c".

________________________________

From: speex-dev-bounces at xiph.org [mailto:speex-dev-bounces at xiph.org] On Behalf Of ¼Õ½Â¿ø
Sent: Friday, January 20, 2006 11:40 AM
To: speex-dev at xiph.org
Subject: [Speex-dev] Compile error (svn 10743)


Hi,
 
I've received svn 10743 revision.
But there are compile errors at three files with VS2005.
 
Please check these reports.
 
Sohn,
Platform system engineer.
 
=============================================================================
 
1. modes.c
- nb_mode_new()
  SpeexNBMode * nb_mode;
 
  nb_mode = (SpeexNBMode *) speex_alloc (sizeof (SpeexNBMode));
  if (nb_mode == NULL) return NULL;
 
  nb_mode->frameSize = frameSize;
  nb_mode->subframeSize = subframeSize;
  nb_mode->lpcSize = lpcSize;
  nb_mode->bufSize = bufSize;    <<<--- 
 
1>d:\voip\mod_speexrefcode\modes_noglobals.c(198) : error C2039: 'bufSize' : is not a member of 'SpeexNBMode'
 
2. mdf.c
- speex_echo_cancel()
 
   /* Update weight to prevent circular convolution (MDF / AUMDF) */
   for (j=0;j<M;j++)
   {
      /* This is a variant of the Alternatively Updated MDF (AUMDF) */
      /* Remove the "if" to make this an MDF filter */
      if (j==M-1 || st->cancel_count%(M-1) == j)
      {
         spx_word16_t w[N];  <<<<-----

1>d:\voip\mod_speexrefcode\mdf.c(639) : error C2057: expected constant expression
1>d:\voip\mod_speexrefcode\mdf.c(639) : error C2466: cannot allocate an array of constant size 0
1>d:\voip\mod_speexrefcode\mdf.c(639) : error C2133: 'w' : unknown size
 
3. pcm_wrappers.c
 
typedef struct {
} PCMMode;
 
static PCMMode pcmmode;
 
int pcm_mode_query(const void *mode, int request, void *ptr)
{
   const PCMMode *m = (const PCMMode*)mode;
   
   switch (request)
   {
      default:
         speex_warning_int("Unknown nb_mode_query request: ", request);
         return -1;
   }
   return 0;
}
/* Default mode for narrowband */
const SpeexMode pcm_wrapper_mode = {
   &pcmmode,
   pcm_mode_query,
   "PCM",
   0,
   4,
   &pcm_encoder_init,
   &pcm_encoder_destroy,
   &pcm_encode,
   &pcm_decoder_init,
   &pcm_decoder_destroy,
   &pcm_decode,
   &pcm_encoder_ctl,
   &pcm_decoder_ctl,
};
 
>d:\voip\mod_speexrefcode\pcm_wrapper.c(147) : error C2059: syntax error : '}'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(149) : error C2061: syntax error : identifier 'pcmmode'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(149) : error C2059: syntax error : ';'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2143: syntax error : missing ';' before '*'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2065: 'm' : undeclared identifier
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2100: illegal indirection
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2146: syntax error : missing ')' before identifier 'PCMMode'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2059: syntax error : ')'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(153) : error C2297: '*' : illegal, right operand has type 'const void *'
1>d:\voip\mod_speexrefcode\pcm_wrapper.c(165) : error C2065: 'pcmmode' : undeclared identifier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20060120/95862c9f/attachment.htm


More information about the Speex-dev mailing list