Hello everyone,
I'm developing a code that involves complex number (complex.h).In every line that has the imaginary I, such as:
float complex sum = 0.0 + 0.0*I;
or
noise[j][i] = conjf(eigen_vec[i][k] + eigen_vec[i+m-1][k]*I);
Keil gives that warning: " imaginary constants are a GNU extension".
In the complex.h has:
define I _Complex_I
Why is it giving that warning?Is my code going to work properly?How can I solve that warning?Thanks in advanced.
Cuparra said:Why is it giving that warning?
See here, here, here, here.
Cuparra said:Is my code going to work properly?
The pages provide some hints about the problems when using the extension both in C and in C++ code.
Cuparra said:How can I solve that warning?
float complex a = (__extension__ 1.0
i);
__extension__