Search code examples
c++linden-scripting-language

Compliation Error of a C++ second life library


I am trying to compile a slight part of second life library. Specifically, it is the llcommon part. I compiled it in Windows System with VS9. I failed and the compiler said it cannot recognize '_Ios_Openmode' as a member of 'std'

The corresponding code is as following:

explicit llifstream(const std::string& _Filename, std::_Ios_Openmode _Mode = in)
    : std::ifstream(_Filename.c_str(), _Mode)
{       
}

Can anyone help me figure out what the problem is, should I change my compiler configuration or something else?


Solution

  • I think it's meant to be std::ios::openmode.