I am trying to compile the latest (3.0.1, "fma" version of the
distribution) FFTW ("Fastest Fourier Transform in the West",
) library with CW 9.1 and experience some problems. I
intend to compile it for different platforms (Mac OS X, Mac OS 9 and Win),
but currently concentrate on a Mac OS X target. Apparently, I am at a
point where I can compile the library itself, but where I am not able to
compile a utility library (associated with the "libbench2" directory of
the distribution) required for testing and benchmarking the library. The
problematic file is "bench-user.h", included from "verify.h", itself from
When I try to compile "verify.c", I get the following (pre-?)compilation error :
Error : unexpected argument while expanding macro 'verify' (wanted 1)
bench-user.h line 133 extern void verify(const char *param, int rounds,
"bench-user.h" contains the following declaration :
extern void verify(const char *param, int rounds, double tol);
while the "void verify(const char *param, int rounds, double tol)"
function is defined in "verify.c".
I am puzzled by this interpretation of the symbol "verify" as a macro
rather than a function. I performed a search for "verify" in all my
project sources and could not find any macro with this name.
Has anybody any hint where to look for to solve this issue ? Has anybody
else here ever tried to compile FFTW 3.0.1 with CW ? [Using the Unix
installation instructions in the Mac OS X terminal works fine, so this
"verify.c" file compiles all right with Apple's gcc.]
Thank you in advance for any help...