From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078701111533.tru64-unix-managers.marc@archive.invalid> From: "S.Hergeth" Date: Wed, 18 Mar 1998 15:24:44 +0000 To: tru64-unix-managers Subject: GCC 2.8.1 X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078701111533 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------446B794B15FB" This is a multi-part message in MIME format. --------------446B794B15FB Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi DU-Managers, I have installed gcc 2.8.1 and libstdc++ 2.8.1 on our alpha-systems (V4.0b). Maybe it is a bug of gcc or I have made a fault. When I try to compile the attached program vector.cc I get the following errors c++ vector.cc /usr/ucb/ld: /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(exception.o): __cp_exception_info: multiply defined /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(exception.o): __cp_pop_exception: multiply defined /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(exception.o): __uncatch_exception: multiply defined /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(_eh.o): __terminate: multiply defined /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(_eh.o): __get_dynamic_handler_chain: multiply defined /usr/local/lib/gcc-lib/alpha-dec-osf4.0b/2.8.1/libgcc.a(_eh.o): __sjthrow: multiply defined When I compile it with -lstdc++ or -lgcc it works fine. c++ vector.cc -lstdc++ With gcc v2.7.2.3 everything worked fine. Any ideas ? -- Stefan Hergeth, Fachhochschule Muenchen, Fachbereich Informatik/Mathematik Lothstrasse 34 , D-80323 Muenchen Tel.:089/1265-1628 Fax:089/1265-1643 email: S.Hergeth@informatik.fh-muenchen.de --------------446B794B15FB Content-Type: text/plain; charset=us-ascii; name="vector.cc" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vector.cc" #include #include int main() { vector v(10); cout << v.back() << endl; v.insert(v.end(), 2); cout << v.back() << endl; return 0; } --------------446B794B15FB--