mrc
----- Forwarded message from Patrick Pelissier <address@hidden> -----
X-Amavix: Anti-virus check done by ClamAV
X-Amavix: Scanned by Amavix
Date: Tue, 4 Jan 2005 09:44:36 +0100
From: Patrick Pelissier <address@hidden>
To: Mike Castle <address@hidden>
Cc: address@hidden
Subject: Re: ncurses and mpfr don't play well together
In-Reply-To: <address@hidden>
X-ELNK-AV: 0
On Fri, Dec 31, 2004 at 12:46:14 -0800, Mike Castle wrote:
With a recent vintage of ncurses and mpfr-2.1.0 (also happens with a fairly
recently version of mpfr-2.2.0 pulled from cvs as shipped with
genius-0.7.2), the following causes problems:
address@hidden:43pm]~(510) cat t.c
#include <term.h>
#include <mpfr.h>
address@hidden:43pm]~(511) gcc -c t.c
In file included from t.c:2:
/usr/include/mpfr.h:438: error: parse error before '->' token
Turns out that term.h has the following lines of interest:
#define CUR cur_term->type.
#define tab CUR Strings[134]
And mpfr.h has:
int mpfr_sum _MPFR_PROTO ((mpfr_ptr, mpfr_ptr __gmp_const tab[], unsigned
long,
mpfr_rnd_t));
Which causes:
address@hidden:44pm]~(514) gcc -c -save-temps t.c
In file included from t.c:2:
/usr/include/mpfr.h:438: error: parse error before '->' token
address@hidden:44pm]~(515) grep mpfr_sum t.i
int mpfr_sum (mpfr_ptr, mpfr_ptr const cur_term->type. Strings[134][], unsigned
long, mpfr_rnd_t);
My local solution was to replace tab with t_ab as a work around.
Just remove tab should work too.
But it is a bug of ncurses, which is not namespace clean.
You better report it to the developpers of ncurses.
Sincerely,
Patrick Pelissier
----- End forwarded message -----
--
Mike Castle address@hidden www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
_______________________________________________
Bug-ncurses mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-ncurses