public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Ios_base missing
@ 2002-01-03  4:53 Paolo Carlini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Carlini @ 2002-01-03  4:53 UTC (permalink / raw)
  To: andersb; +Cc: gcc-help

> Is there a compiler flag Im missing or?

Libstc++-v2, the C++ run time library shipped with 2.95.x, was not very standard
compliant in some areas...
Why don't you upgrade to the new 3.0.x series of GNU compilers? Currently there
is no problem at all with a testcase like yours.

Cheers,
Paolo.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Ios_base missing
@ 2002-01-03  4:43 Anders Backman
  0 siblings, 0 replies; 2+ messages in thread
From: Anders Backman @ 2002-01-03  4:43 UTC (permalink / raw)
  To: gcc-help

Hi.
Im working under IRIX 6.5.

Im trying to compile the following code using g++ version:

Reading specs from
/lap/gcc/2.95.2/lib/gcc-lib/mips-sgi-irix6.5/2.95.2/specs
gcc version 2.95.2 19991024 (release)


#include <iostream>
void main()
{
  try {
      int i=0;
  }
  catch(std::ios_base::failure) {
    int u=0;
  }
}

I get the following error:

asd.cpp: In function `int main(...)':
asd.cpp:8: parse error before `::'
asd.cpp:10: confused by earlier errors, bailing out

It seems to be the namespace ios_base that is missing.

The same code compiles both under MSVC++ 6.0 and Irix MIPSPRO.
Is there a compiler flag Im missing or?

I get the same error under Cygwin using g++ 
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)

/Anders

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-03 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03  4:53 Ios_base missing Paolo Carlini
  -- strict thread matches above, loose matches on Subject: below --
2002-01-03  4:43 Anders Backman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).