GCC 2.8.1

From: S.Hergeth <S.Hergeth_at_informatik.fh-muenchen.de>
Date: Wed, 18 Mar 1998 16:24:44 +0100

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_at_informatik.fh-muenchen.de


#include <vector>
#include <iostream.h>

int main()
{
        vector<int> v(10);

        cout << v.back() << endl;

        v.insert(v.end(), 2);
        
        cout << v.back() << endl;
        return 0;
}
Received on Wed Mar 18 1998 - 16:24:57 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT