------- Comment #3 from redi at gcc dot gnu dot org 2010-08-08 02:17 -------
(In reply to comment #2)
> Thank you,yeah,the code is not a self-contained testcase.I copile it with
> another codes which not show here.
Yes, but we don't want to see a useless chunk of your program, it doesn't help
anyone. You could have reduced the code to this and it would show the same
problem:
#include <fstream>
void f()
{
std::ofstream txt_stream;
txt_stream.open("foo", "w");
}
Your example is full of unrelated code that has nothing to do with the problem.
> The main problem is open() function.For
> calling open() of GCC 3.4.6,what can I do in may code and how to update my
> code
> to ISO C++.Could please you give me specific example.Thank you in advance.
As I said, the second argument to ofstream::open is openmode
e.g.
txt_stream.open("foo", std::ios::out);
Please consult a C++ book or reference for more details.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45226