No problems with gcc 4.5 and IFort 11.1.073 (32 bit) on X64 Linux:
$ cc -m32 -g -c cplx.c
$ ifort -g -nofor-main cplx.o cfun.f90
$ ./a.out
x: (0.0000000E+00,1.000000)
$
If you are running on an Apple-Mac, have you checked regarding the X-Code bugs and work-arounds?





passing float _Complex from C to Fortran
Hello,I'm trying to pass some complex data from a C to a Fortran program without success for the moment.I managed to reproduce the problem in the small example belowC code:
#include void func(float _Complex x); int main(){ func((float _Complex)_Complex_I); return 1; }Fortran code: The value of x printed is(0.0000000E+00,1.5932920E-10). Am I doing anything wrong here?Note that the same code works fine with GNU and IBM compilers. Moreover, if "float" is replaced with "double" in both sources, then it works ok.Can anybody help please?thanks in advance