Dear Managers,
No responses received on this one. Just as well; I get a dunce cap
for this one. The instructions clearly say to install libstdc++, which is
available separately. I downloaded it, but then completely forgot to install
it! Sorry for wasting everyone's time.
Larry
Original post
-------- ----
Dear Managers,
I just installed version 2.8.0 of the GNU C/C++ compiler. I
tested it with a simple 2-module program I use in classes that does
some exception handling. I received the following error messages,
which seem to be saying that everything having to do with exceptions
and RTTI is multiply defined (the program does NOT use RTTI in any
way). The program compiles and runs flawlessly under gcc/g++ v
2.7.2.3 with the -fhandle-exceptions switch turned on. I can supply
the source code if that helps.
I installed gcc so that the Digital ld would be used. Do I need
to use GNU ld instead? Any other suggestions?
I'm using DU v4.0b with the December jumbo patch on a DEC 3000/600.
Error messages
----- --------
collect2: ld returned 1 exit status
/usr/bin/ld:
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
terminate(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
__default_unexpected(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
set_terminate(void (*)(void)): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
set_unexpected(void (*)(void)): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
unexpected(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
exception virtual table: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
exception::what(void) const: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
exception::~exception(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(exception.o):
exception::exception(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
type_info::~type_info(void): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o): type_info
virtual table: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
__user_type_info virtual table: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
__class_type_info virtual table: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
__user_type_info::__user_type_info(char const *): multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
type_info::operator!=(type_info const &) const: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
type_info::operator==(type_info const &) const: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo.o):
type_info::name(void) const: multiply defined
/usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.0/libgcc.a(tinfo2.o):
__throw_type_match_rtti: multiply defined
============================================================================
Larry Griffith Dept. of Computer & Info Science
larry_at_garfield.wsc.mass.edu Westfield State College
(413) 572-5294 Westfield, MA 01086 USA
PGP public key available at:
http://garfield.wsc.mass.edu/dcis/griffith.html
============================================================================
Received on Thu Feb 12 1998 - 22:48:01 NZDT