[linux-audio-user] [ANNOUNCE] polarbear-0.5.0

Nathaniel Virgo nathaniel.virgo at ntlworld.com
Wed Feb 26 10:48:00 EST 2003


On Wednesday 26 February 2003 2:17 pm, Maarten de Boer wrote:
> > polarbear sounds really cool, but I can't get it to compile.  I get
> > [...]
> > the code looks perfectly reasonable though - I can't see what's causing
> > the error.  gcc is 2.95.4.
>
> that is indeed very strange. my gcc is also 2.95.4
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)
>
> and i don't experience this problem..

Mine is identical.  I tried the code change, and now I get

PoleZeroEditor.cxx: In function `void FindCoefs(ComplexArray &, ComplexArray 
&)':
PoleZeroEditor.cxx:17: parse error before `(' 
#		(declaration of one)
PoleZeroEditor.cxx:20: `one' undeclared (first use this function)
PoleZeroEditor.cxx:20: (Each undeclared identifier is reported only once
PoleZeroEditor.cxx:20: for each function it appears in.)


It's almost as if some macro is causing "Complex" to be evaluated as "0".

> could you try changing the code to:
>
>         int i,j,n=roots.size;
> 	Complex one(1,0);
>
>         complexCoefs[n] = -roots[0];
>         complexCoefs[n-1] = one;
>         complexCoefs.size = n+1;
>
>         for (j=1;j<n;j++)
>         {
>                 complexCoefs[n-j-1] = one;
>                 for (i=n-j;i<n;i++)
>
>
> Maarten



More information about the Linux-audio-user mailing list