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

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] [ANNOUNCE] polarbear-0.5.0
From: Nathaniel Virgo (nathaniel.virgo_AT_ntlworld.com)
Date: Wed Feb 26 2003 - 17:40:10 EET


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Feb 26 2003 - 18:02:54 EET