![]() |
GCC and VC++
I am converting an application from GCC to Visual Studio C++ 10(VS), the express thing from Microsoft.
VS, I get an error msg on this class method does not work, 'cos std::_Ios_Openmode is not a member of the std??!! void Read( const Glib::ustring& str, std::_Ios_Openmode& ) ---------- error C2039: '_Ios_Openmode' : is not a member of 'std' error C2061: syntax error : identifier '_Ios_Openmode' how can I fix this problem? |
Re: GCC and VC++
On Thursday, October 4, 2012 7:11:15 AM UTC-7, Rene Ivon Shamberger wrote:
> I am converting an application from GCC to Visual Studio C++ 10(VS), the express thing from Microsoft. VS, I get an error msg on this class method does not work, 'cos std::_Ios_Openmode is not a member of the std??!! void Read( const Glib::ustring& str, std::_Ios_Openmode& ) ---------- error C2039: '_Ios_Openmode' : is not a member of 'std' error C2061: syntax error : identifier '_Ios_Openmode' how can I fix this problem? Inspection of the g++ headers shows that _Ios_Openmode, defined in bits/ios_base.h, is an non-standard implementation detail of the g++ iostream library. It should never be directly referenced by user code. The standard way to specify a file mode is using ios::openmode, specified in <fstream>. |
Re: GCC and VC++
Yes, I understand that, but the deffinition is
//! std API //! File mode //! Synonymous with std::ios_base::in std::_Ios_Openmode read; So, I using the standard, VC should not have a problem with the std. Thanks for the help! |
| All times are GMT. The time now is 11:51 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.