tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "S.Hergeth" <S.Hergeth () informatik ! fh-muenchen ! de>
To: tru64-unix-managers
Subject: GCC 2.8.1
Date: Wed, 18 Mar 1998 15:24:44 +0000	[thread overview]
Message-ID: <96078701111533.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--------------446B794B15FB", Size: 1771 bytes --]

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 <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;
}


--------------446B794B15FB--

             reply	other threads:[~1998-03-18 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-18 15:24 S.Hergeth [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-09 21:03 gcc 2.8.1 Adrian Rollett
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox