This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Ios_base missing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]