I'm calling fdopen. On Windows, using Visual C++ 2010, when I call it I get a warning saying
Warning 1 warning C4996: 'fdopen': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _fdopen.
On Linux (g++ 4.8.2) it works.
When I switch to _fdopen, Visual C++ stops complaining, but g++ can't find it. Since g++ does find fdopen, I don't think it's the issue described here. And anyway, I'm not specifying -std=c++11 .
Should I use _fdopen? Should I use fdopen and ignore the warning?