OpenAmiga (449/959)

From:Douglas McLaughlin
Date:15 Aug 2000 at 19:21:09
Subject:Re: AMIOPEN: Serious problem with VPCC and C++

Hi,

> > To solve the mistery: this problem is caused by libstdc++, which at the
> > time of the 1.0 release was still not complete.
> >
>
> Would this also explain the problems I was having with the fstream class?
>
> [In short:
>
> cout << "hello world" << endl;
>
> works, but:
>
> ofstream fout;
> fout.open("Hello.out");
> fout << "hello world" << endl;
> fout.close();
>
> will fail with an exception (same as previously described)]

Try compiling with the flag: -fno-exceptions

This was suggested to me and it works perfectly. (The suggestion is
on the FAQ.)



Doug (PGP key available upon request.)
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html