The json_reader.cpp is missing an include of <istream>, needed for
bool Reader::parse(std::istream& sin, ...). Failure to include it
leads to a missing definition of getline for istream.
This include was removed in revision 247 as part of a cleanup of
unnecessary includes of <iostream> to improve binary startup time,
but it should not have been removed in json_reader.cpp (or at least
should have been replaced by an include of <istream>).
Here is the patch:
--- /src/lib_json/json_reader.cpp (revision 275)
+++ src/lib_json/json_reader.cpp (working copy)
@@ -13,6 +13,7 @@
#if defined(_MSC_VER) && _MSC_VER >= 1400 // VC++ 8.0
Log in to post a comment.