Re: [Dev-C++] Re: newbie: trying to install FFTW library on XP
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Siva C. <siv...@ya...> - 2004-07-30 17:45:45
|
Hello,
Below is the code you said you used to test. I have
tried compiling it but with two changes. And it works.
I removed the two *'s which are at the begining of the
lines which call the fftw_malloc function. But
everything else is as you said you did.
> #include <stdlib.h>
> #include <fftw3.h>
>
> int main()
> {
> int N = 256;
> fftw_complex *in, *out;
> fftw_plan p;
> * in = fftw_malloc(sizeof(fftw_complex) * N);
> * out = fftw_malloc(sizeof(fftw_complex) * N);
> p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD,
> FFTW_ESTIMATE);
> fftw_execute(p); /* repeat as needed */
> fftw_destroy_plan(p);
> fftw_free(in); fftw_free(out);
> system("PAUSE");
> return 0;
> }
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
|