title: Double and float VC++
body: <p>I am new to VC ++. I'm trying to compile the library FFT3W. </p>
  
  <p>When I try to compile </p>
  
  <pre><code>// Define temporary buffers 
  data_t fft_buffer; 
  data_t zeros; 
  
  // Allocate memory and initialize to 0 
  fft_buffer.resize (2 * partition_size, 0.0f); 
  zeros.resize (2 * partition_size, 0.0f); 
  
  // Create plans for halfcomplex fft data format 
  fftwf_plan fft_plan = 
  fftw_plan_r2r_1d (2 * partition_size, &amp; fft_buffer [0], 
  &amp; fft_buffer [0], FFTW_R2HC, FFTW_ESTIMATE); 
  </code></pre>
  
  <p>I get the following error </p>
  
  <pre><code>Error C2664: 'fftw_plan_r2r_1d': can not convert parameter 2 from 'float *' to 'double *' 
  </code></pre>
  
  <p>The function fftw_plan_r2r_1d is defined as:</p>
  
  <pre><code>fftw_plan_r2r_1d(int n, double *in, double *out, fftw_r2r_kind kind, unsigned flags);
  </code></pre>
  
  <p>Any idea? </p>
  
  <p>Thank you.</p>