Bug#94324: g++ cannot compile <readline/readline.h>
Package: g++-2.95
Version: 2.95.4-0.010407
and/or
Package: libreadline4-dev
Version: 4.2-2
Compiling the following simple single-line program (call it test.cc)
#include <readline/readline.h>
with
g++ test.cc
fails with:
In file included from /usr/include/readline/keymaps.h:37,
from /usr/include/readline/readline.h:37,
from test.cc:1:
/usr/include/readline/rltypedefs.h:48: invalid exception specifications
/usr/include/readline/rltypedefs.h:51: invalid exception specifications
/usr/include/readline/rltypedefs.h:52: invalid exception specifications
/usr/include/readline/rltypedefs.h:54: invalid exception specifications
/usr/include/readline/rltypedefs.h:55: invalid exception specifications
/usr/include/readline/rltypedefs.h:57: invalid exception specifications
/usr/include/readline/rltypedefs.h:59: invalid exception specifications
/usr/include/readline/rltypedefs.h:62: invalid exception specifications
/usr/include/readline/rltypedefs.h:65: invalid exception specifications
/usr/include/readline/rltypedefs.h:70: invalid exception specifications
/usr/include/readline/rltypedefs.h:73: invalid exception specifications
/usr/include/readline/rltypedefs.h:75: invalid exception specifications
/usr/include/readline/rltypedefs.h:76: invalid exception specifications
/usr/include/readline/rltypedefs.h:78: invalid exception specifications
/usr/include/readline/rltypedefs.h:79: invalid exception specifications
/usr/include/readline/rltypedefs.h:80: invalid exception specifications
/usr/include/readline/rltypedefs.h:81: invalid exception specifications
In file included from /usr/include/readline/readline.h:38,
from test.cc:1:
/usr/include/readline/tilde.h:55: invalid exception specifications
Browsing around the web revealed this potentially relevant link:
http://sources.redhat.com/ml/libc-alpha/1998-q3/msg00006.html
I believe I have started experiencing this problem after upgrading to the
latest g++ package.
--
Maciej Kalisiak | <mac@dgp.toronto.edu> | http://www.dgp.toronto.edu/~mac [McQ]
PGP->finger|www; (0x39AC36F5) 9F BB 9E 11 F0 1E 5D 20 0B 31 3D 37 47 D0 67 C7
GE/CS d- s++:+ a- C++(+++) ULAI++ P+++ L+++ E+++ W++ N- o? K? !w--- O- M- V--
PS PE+ Y+ PGP+ t+ 5 !X-- R+ tv-- b+>++++ DI+ G+ e>+++>++++(*) h--- r+++ y?
Reply to: