Re: [AMBER-Developers] Amber on Mac (Snow Leopard)

From: Volodymyr Babin <vbabin.ncsu.edu>
Date: Wed, 16 Sep 2009 22:10:34 -0400 (EDT)

>> f2c.h:140: error: expected specifier-qualifier-list before ‘complex’
>
> Try commenting out lines 140 and 141 of f2c.h ... I'm not sure that union
> is ever used in the code.

It indeed looks more like a compiler error, but try also the following:

diff -u -r10.2 f2c.h
--- f2c.h 15 Sep 2009 12:13:22 -0000 10.2
+++ f2c.h 17 Sep 2009 02:02:07 -0000
.. -18,6 +18,12 ..
 typedef double doublereal;

 /* the following might be incompatible with what is in <complex.h>: */
+#ifdef complex
+# undef complex
+#endif
+#ifdef doublecomplex
+# undef doublecomplex
+#endif
 typedef struct { real r, i; } complex;
 typedef struct { doublereal r, i; } doublecomplex;

(I am not completely sure it is going to help though).

Best,

Volodymyr


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Wed Sep 16 2009 - 19:30:02 PDT
Custom Search