------- Comment #1 from fxcoudert at gcc dot gnu dot org 2008-03-05 21:45 ------- What kind of system do you have, to have a <complex.h> without complex defined in it? (sounds kind of useless)
I suggest the following patch: Index: libgfortran.h =================================================================== --- libgfortran.h (revision 132578) +++ libgfortran.h (working copy) @@ -42,10 +42,12 @@ #if HAVE_COMPLEX_H # include <complex.h> -#else -#define complex __complex__ #endif +#if !defined(HAVE_COMPLEX_H) || !defined(complex) +# define complex __complex__ +#endif + #include "../gcc/fortran/libgfortran.h" #include "c99_protos.h" -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxcoudert at gcc dot gnu dot | |org Summary|gfortran build fails in |libgfortran fails with |libgfortran |nonstandard <complex.h> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35471