I want to call a C function of a complex argument, declared as
double _Complex cerf ( double _Complex z );
from C++. The following works:
#include<complex.h>
double _Complex z = 1.0;
cerf( z );
However, I fail to assign an imaginary part to z:
double _Complex z = 1.0 + _Complex_I * 2.0;
does not compile under g++: "unable to find numeric literal operator ‘operator""iF’"
. Other expressions I tried lead to other, similarly cryptic error messages.