On Wednesday, April 23, 2003, at 11:55 AM, Lars Tunkrans wrote:
Hello ! While compiling MAD 0.14.2b on Solaris 9 using the native SUN studio7 C compiler this error occurs.
"synth.c", line 218: syntax error before or at: {
this is line 218 and 219 in synth.c
t0 = in[0] + in[31]; t16 = MUL(in[0] - in[31], costab1); t1 = in[15] + in[16]; t17 = MUL(in[15] - in[16], costab31);
This is obviously O.K. with GCC 3.2.2 why would Sun's Studio7 Compiler threw it out ?
MUL() is a macro that (in this case) uses some GCC extensions -- for one, the ({ ... }) statements-expression extension. It doesn't look like Sun's compiler supports this extension.
Try using a different FPM_ selection, like FPM_64BIT or the more portable FPM_DEFAULT (e.g. configure --enable-fpm=default). Be aware that FPM_DEFAULT loses significant output accuracy, unfortunately.