Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xobtah opened this issue Mar 7, 2018 · 0 comments
Open

Comments

@Xobtah
Copy link

Xobtah commented Mar 7, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant