ios::nocreate error while compiling a C++ code
- by Mohit Nanda
While, compiling a package, written in C++ on RHEL 5.0. I am getting the following error.
error: nocreate is not a member of std::ios
The source-code corresponds to:
ifstream tempStr(argv[4],ios::in|ios::nocreate);
I have tried
#g++ -O -Wno-deprecated <file.cpp> -o <file>
as well as:
#g++ -O -o <file>
Please suggest a solution.