From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,cba9c4d083507d6d X-Google-Attributes: gidfee84,public From: Philip van Ulden Subject: Re: gcc 2.8.1 (Digital Unix) Date: 1999/05/10 Message-ID: <3736F96A.F6AA13F@engr.mun.ca>#1/1 X-Deja-AN: 476205872 Content-Transfer-Encoding: 8bit References: <37363312.207027F6@its.monash.edu.au> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Memorial University of Newfoundland Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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 > #include > > 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 > > 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 ________________________________________________