[Dev-C++] Re: newbie: trying to install FFTW library on XP
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <jd...@st...> - 2004-07-30 17:09:03
|
Siva:
Thanks for your help, and I did as you suggested, and tried compiling the
tutorial code...but I'm getting an error I don't quite understand:
invalid conversion from `void*' to `double (*)[2]'
this appears at the two lines with fftw_malloc(lines starred in my code below)
here's the exact code I'm trying to compile...and I already put the header in
the include folder and linked the .lib file. If you or anyone else had any
ideas why this would happen, I'd appreciate it thanks.
#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;
}
|