vrpn / jsoncpp

A C++ library for interacting with JSON. Fork to backstop the VRPN submodule.
Other
1 stars 2 forks source link

‘scoped_ptr’ in namespace ‘std’ does not name a template type #2

Open Xobtah opened 6 years ago

Xobtah commented 6 years ago

Hello,

I'm trying to "make" the project, I have done this: $ mkdir -p build $ cd build $ cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DARCHIVE_INSTALL_DIR=. -G "Unix Makefiles" .. $ make

And now I have this error: /home/xobtah/OSVR/jsoncpp/src/lib_json/json_reader.cpp:47:14: error: ‘scoped_ptr’ in namespace ‘std’ does not name a template type typedef std::scoped_ptr<CharReader> const CharReaderPtr; ^~~~~~~~~~ /home/xobtah/OSVR/jsoncpp/src/lib_json/json_reader.cpp: In function ‘bool Json::parseFromStream(const Json::CharReader::Factory&, std::istream&, Json::Value*, std::__cxx11::string*)’: /home/xobtah/OSVR/jsoncpp/src/lib_json/json_reader.cpp:1822:3: error: ‘CharReaderPtr’ was not declared in this scope CharReaderPtr const reader(fact.newCharReader()); ^~~~~~~~~~~~~ /home/xobtah/OSVR/jsoncpp/src/lib_json/json_reader.cpp:1823:10: error: ‘reader’ was not declared in this scope return reader->parse(begin, end, root, errs); ^~~~~~ /home/xobtah/OSVR/jsoncpp/src/lib_json/json_reader.cpp:1813:32: error: unused parameter ‘fact’ [-Werror=unused-parameter] CharReader::Factory const& fact, std::istream& sin, ^~~~ cc1plus: all warnings being treated as errors src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/build.make:62: recipe for target 'src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o' failed make[2]: *** [src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o] Error 1 CMakeFiles/Makefile2:109: recipe for target 'src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/all' failed make[1]: *** [src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2

I'm running Debian Stretch.

Thank you for your time, have a nice day!