Quote:
Dear Jacob,
thanks for answering. The line where this happens is
deltak=2.0*b*cimag(tildeeta[iKplusk]-tildeeta[iKpluskstern]) ;
where deltaK and the array tildeeta[] are defined as double complex
variables
iKplusk and iKpluskstern are integer, and b is a double.
My includes in this file are
#include <ctype.h
#include <stdio.h
#include <stdlib.h
#include <math.h
#include <string.h
#include <limits.h
#include <complex.h
and a couple of my own headers.
I recall having problems with complex.h before. Interestingly,
the problem occurs in my project after the compiler has passed
maybe hundred lines or more of similar code without trouble.
If I comment out the above line, there is a similar problem below in
my code and so on, so I do not think that there is anything too special
about that line. Also, under linux, gcc compiles the same code
without error or warning messages, so I assume that my syntax
is ok.
Have a nice weekend,
Andi