Microsoft
Software
Hardware
Network
Question : Incompatible types when assigning to type ‘fftw_complex’ from type ‘double *’
Hello,
I'm programming in C and am using the FFTW library, in which there is the data type fftw_complex defined as double[2]. Now consider two arrays of these:
fftw_complex a[10];
fftw_complex b[10];
if I do the following:
a[5] = b[5];
I get the error:
incompatible types when assigning to type ‘fftw_complex’ from type ‘double *’.
What's wrong with this? I realise I could just assign each of the two elements [0] and [1] but I would expect this to do the job...
I'm using Eclipse-CDT with gcc 4.4.3. Thanks!
Answer : Incompatible types when assigning to type ‘fftw_complex’ from type ‘double *’
typedef double fftw_complex[2];
a[5] is an array of two doubles, right.
The = operator does not apply to arrays.
Random Solutions
Documents Folder redirection on server 2008 R2 remote desktop services in SBS 2003 domain
how to use iscsi from backup exec with Dell TL2000
Find Label in Datalist within Gridview
Copy Folder / Files From Corrupt Disk In Linux (Kubuntu)
Linked Servers to "Thunk" 64-bit to 32-bit OLEDB
HP-UNIX - compressing/zipping files that are 31GB
MacMail & Exchange Public Folders - How to access them? I don't see them...
Is it possible to hide a map network drive?
Flash device Operating System
Insert into MySQL Table from MSSQL Insert Trigger