Compiling FFTW 3.0.1 with CW 9.1

Compiling FFTW 3.0.1 with CW 9.1

Post by Laurent.La » Sat, 17 Jan 2004 01:35:26


Hello,

I am trying to compile the latest (3.0.1, "fma" version of the
distribution) FFTW ("Fastest Fourier Transform in the West",
http://www.yqcomputer.com/ ) 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
"verify.c".

When I try to compile "verify.c", I get the following (pre-?)compilation error :

Error : unexpected argument while expanding macro 'verify' (wanted 1)
(included from:
bench.h:24
verify.h:21
verify.c:26)
bench-user.h line 133 extern void verify(const char *param, int rounds,
double tol);



"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...


Laurent
 
 
 

Compiling FFTW 3.0.1 with CW 9.1

Post by Paul Russe » Sat, 17 Jan 2004 03:46:14


There's a verify macro in AssertMacros.h. It takes one argument (it's
like an assert) so I imagine that is the culprit.

You might be able to work around this by not using precompiled headers
and only #including the minimum set of headers that you actually need.

Paul

 
 
 

Compiling FFTW 3.0.1 with CW 9.1

Post by Sean McBri » Sat, 17 Jan 2004 04:30:56

In article < XXXX@XXXXX.COM >,



Search the OS's headers too. Apple's AssertMacros.h has a verify()
macro that I guess is being included somehow, perhaps from a CW
precompiled header.
 
 
 

Compiling FFTW 3.0.1 with CW 9.1

Post by Laurent.La » Sat, 17 Jan 2004 21:49:28

In article < XXXX@XXXXX.COM >, Sean McBride




and



Thanks to both of you : that was it.

Now I can compile this "libbench2" library as well and include it in the
project for the testing application.
However, at link time, I have met an "internal linker error". After
recompiling all my sub-projects without pre-compiled headers, that last
"internal linker error" does not appear but CW 9 unexpectingly quits,
leaving me with a "console" dialog whether to send a crash log to Apple or
not...

Any further idea ?



Laurent
 
 
 

Compiling FFTW 3.0.1 with CW 9.1

Post by Sean McBri » Sun, 18 Jan 2004 01:44:40

In article < XXXX@XXXXX.COM >,



You should definately report that to MW.