Dear Bastien, when compiling code that uses cfortran.h with the PGI compiler on x86_64: the pgiFortran define is slightly wrong: I found that when returning REAL from a Fortran function it's only passed correctly when defining gFortran. Regards, Thomas Jahns