From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,cba9c4d083507d6d,start X-Google-Attributes: gidfee84,public From: Marchelm Bomers Subject: gcc 2.8.1 (Digital Unix) Date: 1999/05/10 Message-ID: <37363312.207027F6@its.monash.edu.au>#1/1 X-Deja-AN: 476009923 Distribution: world Content-Transfer-Encoding: 8bit X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@monash.edu.au X-Trace: towncrier.cc.monash.edu.au 926298882 28444 130.194.208.87 (10 May 1999 01:14:42 GMT) Organization: Monash University Staff Mime-Version: 1.0 NNTP-Posting-Date: 10 May 1999 01:14:42 GMT Newsgroups: comp.unix.osf.osf1 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 **********************************************************