From: Philip van Ulden <philipv@engr.mun.ca>
Subject: Re: gcc 2.8.1 (Digital Unix)
Date: 1999/05/10 [thread overview]
Message-ID: <3736F96A.F6AA13F@engr.mun.ca> (raw)
In-Reply-To: 37363312.207027F6@its.monash.edu.au
Marchelm Bomers wrote:
>
> Is there anybody out there who has experience installing gcc on a Digital alpha?
> I am trying to upgrade gcc (2.7.2.2) on a machine to 2.8.1.1, but am having
> considerable difficulty, in particular with the std library. I have installed
> the gcc compiler (correctly I hope - I did have to fix an odd problem or two),
> but when `making` stdlib I get (in part) the following message:
>
> test x"no" != xyes || c++ -c -g -O2 -fno-implicit-templates -I. -I./stl
> -I../libio -I./../libio -nostdinc++ stdexcepti.cc -o pic/stdexcepti.o
> c++ -c -g -O2 -fno-implicit-templates -I. -I./stl -I../libio -I./../libio
> -nostdinc++ stdexcepti.cc
> In file included from stdexcepti.cc:8:
> stdexcept:40: parse error before `{'
> stdexcept:44: virtual outside class declaration
> stdexcept:44: non-member function `what()' cannot have `const' method qualifier
> stdexcept: In function `const char * what()':
> stdexcept:44: `_what' undeclared (first use this function)
> stdexcept:44: (Each undeclared identifier is reported only once
> stdexcept:44: for each function it appears in.)
>
> Here is the relevant part of stdexcept.
>
> #ifndef __STDEXCEPT__
> #define __STDEXCEPT__
>
> #ifdef __GNUG__
> #pragma interface "stdexcept"
> #endif
>
> #include <exception>
> #include <string>
>
> extern "C++" {
>
> class logic_error : public exception {
> string _what;
> public:
> logic_error(const string& what_arg): _what (what_arg) { }
> virtual const char* what () const { return _what.c_str (); }
> };
>
> I am not a qualified progarmmer so the above tends to bit a bit "greek" to me,
> but I am under the impression that the error actaully relates to the following
> statement in "stdexcept":
> #include <exception>
>
> Unfortunately there is no such file in the distribution, and using the one from
> the current installation does not solve the problem. Nor does using "stdexcept"
> AND "exception" from the current installation (gives a lot less errors but still
> falls over in the end).
>
> Any help gratefully received.
>
> Tanx in advance.
>
> Marchelm
> --
> **********************************************************
> Marchelm B�mers B.Sc
> Unix Programmer/Administrator/Postmaster
> Monash University, IT Services, Gippsland Campus
> Northways Rd., Churchill, Victoria 3842, Australia
>
> Phone: (03) 51226963 Fax: (03) 51226719 (local)
> Phone: +61 3 51226963 Fax: +61 3 51226719 (national)
> Email: Marchelm.Bomers@its.monash.edu.au
> **********************************************************
You should build both libstdc++ and gcc at the same time. unpack the
gcc tar in your libstc++ distribution, rename the gcc-2.8.1 directory to
gcc and then run a configure and a make from your libstdc++ dir.
Hope this helps.
Phil
--
________________________________________________
Philip van Ulden
Programmer Consultant
C-CAE, Faculty of Engineering & Applied Science
Memorial University of Newfoundland
Phone: (709) 737-8925
Email: philipv@engr.mun.ca
________________________________________________
next prev parent reply other threads:[~1999-05-10 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-10 4:00 gcc 2.8.1 (Digital Unix) Marchelm Bomers
1999-05-10 4:00 ` Philip van Ulden [this message]
1999-05-16 4:00 ` Marchelm Bomers
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