With code like this:
I get - undefined reference to `csin' and several other complex functionsCode:#include <stdio.h>
#include <complex.h>
#include <math.h>
int main(int argc, char *argv[]) {
double complex z1 = 0.0 + 1.0 * I;
double a = csin(z1);
printf("%lf", a);
return 0;
}
But some functions work eg creal and cimag but others do no.
This is with gcc compiler, through Netbeans, on Debian Mint.
The compiler standard is set to C99.
TIA