<div dir="ltr">Hi all,<br><br>I'm porting the FFT Vocoder from AMS to ams.lv2.<br>The FFT Vocoder is using fftw_complex, and I can compile my code if I use -std=c99 but not if I use -std=c++11<br><br>I get error like:<br><br>error: incompatible types in assignment of ‘float’ to ‘fftw_complex {aka double [2]}’<br>   modinforward[l2] = modbuf[l2] * window[l2];<br><br>error: cannot convert ‘double*’ to ‘__complex__ double’ for argument ‘1’ to ‘double creal(__complex__ double)’<br>   p(p_modulatorfft)[l2] = logf(fabs (creal (modoutforward[l2])) + 1.0);<br><br>error: invalid array assignment<br>   modinbackward[ lclfrq ] = modoutforward [l2];<br><br>carrinforward, carroutforward, carrinbackward, carroutbackward, modinforward, modoutforward, modinbackward, modoutbackward are pointers to fftw_complex.<br><div><div><pre style="margin-top:0px;margin-bottom:0px"></pre></div></div><div><br></div><div>Would you guys have any idea why it doesn't compile in the c++11 standard? From my research I saw there were some changes between c99 and c11 with complex numbers, but I can't figure out how to bring the code to C++11.</div><div><br></div><div><br></div><div>Thanks in advance for the help,</div><div><br></div><div>Aurélien</div></div>