[Bug libstdc++/45226] the difference of fstream's open() in different GCC version

china dot wenli dot wang at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Aug 8 02:08:00 GMT 2010



------- Comment #2 from china dot wenli dot wang at gmail dot com  2010-08-08 02:08 -------


(In reply to comment #1)
> 1) GCC 3.4.6 is ancient and no longer supported.
> 
> 2) Your code is not a self-contained testcase, so noone can compile it.
> 
> 3) std::ofstream::open does not take a string as the second parameter, it takes
> a bitmask of type std::ios:openmode.  You need to update your code to ISO C++.
> 
Mr Wakely,
Thank you,yeah,the code is not a self-contained testcase.I copile it with
another codes which not show here.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.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45226



More information about the Gcc-bugs mailing list