This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Using libg++ with egcs
- To: egcs at cygnus dot com
- Subject: Using libg++ with egcs
- From: Jeff Johnson <jbj at jbj dot org>
- Date: Sat, 13 Dec 1997 10:30:50 -0500 (EST)
- Reply-To: egcs at cygnus dot com
Hi --
I'm having trouble compiling c++ components of ncurses-4.1 with egcs. I'm
running on a sparc-sun-solaris2.6 with
egcs-1.0 (--enable-shared --enable-haifa --with-gnu-ld --with-gnu-asm)
egcs-1.0.diff (H. J. Lu)
libg++2.8.0b6.3 (H. J. Lu)
binutils-2.8.1.0.17 (H. J. Lu)
and "make -k check" as well as groff compile seem OK.
However, I noticed the gxx_includedir missing underscore problem. What
is the "right" place to install libg++ files with egcs? I chose to
put these in /usr/local/include/g++. (N.B.: I also have older copies in
/usr/local/lib/g++-include).
Second, I am now seeing the following compiling ncurses.
[ deleted }
cd c++; make INSTALL_PREFIX="" all
make[1]: Entering directory `/K/h/jbj/src/ncurses/c++'
cd ../obj_s; c++ -DNDEBUG -I. -I../include -I/usr/local/include -I../include -I.
/../c++ -DHAVE_CONFIG_H -O2 -fpic -c ../c++/cursesm.cc
In file included from /usr/local/include/g++/cmath:7,
from /usr/local/include/g++/builtin.h:33,
from ../c++/cursesw.h:15,
from ../c++/cursesp.h:5,
from ../c++/cursesm.h:27,
from ../c++/cursesm.cc:30:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.90.21/include/math.h:82: warn
ing: `exception' redefined
../c++/cursesw.h:14: warning: this is the location of the previous definition
In file included from /usr/local/lib/g++-include/std/typeinfo.h:243,
from /usr/local/lib/g++-include/typeinfo:5,
from ../c++/etip.h:6,
from ../c++/cursesw.h:29,
from ../c++/cursesp.h:5,
from ../c++/cursesm.h:27,
from ../c++/cursesm.cc:30:
/usr/local/include/g++/stdexcept:40: parse error before `{'
/usr/local/include/g++/stdexcept:44: virtual outside class declaration
/usr/local/include/g++/stdexcept:44: non-member function `what()' cannot have `c
onst' method qualifier
/usr/local/include/g++/stdexcept: In function `const char * what()':
[ more deleted }
I nuked HAVE_BUILTIN_H in ncurses_cfg.h and that got me to:
cd ../obj_s; c++ -DNDEBUG -I. -I../include -I/usr/local/include -I../include -I./../c++ -DHAVE_CONFIG_H -O2 -fpic -c ../c++/cursesm.cc
../c++/etip.h: In function `void THROW(const class NCursesException *)':
In file included from ../c++/cursesw.h:29,
from ../c++/cursesp.h:5,
from ../c++/cursesm.h:27,
from ../c++/cursesm.cc:30:
../c++/etip.h:140: `lib_error_handler' undeclared (first use this function)
../c++/etip.h:140: (Each undeclared identifier is reported only once
../c++/etip.h:140: for each function it appears in.)
Is there a fix for c++ in ncurses (I dunno c++) ?
TNX es 73 de Jeff
--
Jeff Johnson ARS N3NPQ
jbj@jbj.org
Gaithersburg, MD