[PD] creb compilation error woes

Martin Peach martin.peach at sympatico.ca
Sat Sep 9 17:24:19 CEST 2006


Thomas Greg Corcoran wrote:
> Hi,
>
> That removal of -Werror flag is doing fine , thanks .... but after a
> few extra seconds of grace I get this other error :
>
> it relates to blosc.cc ... there was previous posts (~january 2006) on
> the list about this but nothing conclusive ...
>
> ...

>
> make[1]: Entering directory `/home/thomasgreg/creb-0.9.0/modules++'
> g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops
> -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused
> -Wno-parentheses -Wno-switch  -INONE/pd/src -I../include
> -I../include/dspi -o biquadseries.o -c biquadseries.cc
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
> for Ada/C/ObjC but not for C++
> g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops
> -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused
> -Wno-parentheses -Wno-switch  -INONE/pd/src -I../include
> -I../include/dspi -o filterortho.o -c filterortho.cc
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
> for Ada/C/ObjC but not for C++
> g++ -DPD -DCREB_VERSION=\"0.9.0\" -O2 -funroll-loops
> -fomit-frame-pointer -Wall -W -Wstrict-prototypes -Wno-unused
> -Wno-parentheses -Wno-switch  -INONE/pd/src -I../include
> -I../include/dspi -o blosc.o -c blosc.cc
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid
> for Ada/C/ObjC but not for C++
> blosc.cc: In function 't_float
> _get_bandlimited_discontinuity(t_bloscctl*, float*)':
> blosc.cc:114: error: invalid conversion from 't_int*' to 'int*'
> blosc.cc:114: error:   initializing argument 2 of 'float
> _play_voice_lint(float*, int*, float, float)'
Line 114 of blosc.cc is:
sum += _play_voice_lint(table, ctl->c_index+i, ctl->c_frac[i], 
ctl->c_vscale[i]);
You could probably change it to:
sum += _play_voice_lint(table, &ctl->c_index[i], ctl->c_frac[i], 
ctl->c_vscale[i]);
...which avoids any confusion the compiler might have about what size of 
object is being pointed at.
Martin





More information about the Pd-list mailing list