Skip to content

Cannot build #8

@Nick222

Description

@Nick222

Xubuntu 19.10
sources from https://github.com/ivanenko/cloud_storage

cmake -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release . -Bcmake-build-release

-- Build files have been written to: /.../TMP/cloud_storage-master/cmake-build-release

cmake --build cmake-build-release --target cloud_storage -- -j 2

Scanning dependencies of target cloud_storage
[ 20%] Building CXX object CMakeFiles/cloud_storage.dir/library.cpp.o
[ 20%] Building CXX object CMakeFiles/cloud_storage.dir/plugin_utils.cpp.o
In file included from /.../TMP/cloud_storage-master/plugin_utils.h:25,
from /.../TMP/cloud_storage-master/plugin_utils.cpp:32:
/.../cloud_storage-master/service_clients/service_client.h: In member function ‘virtual const char* service_client_exception::what() const’:
/.../TMP/cloud_storage-master/service_clients/service_client.h:50:5: warning: no return statement in function returning non-void [-Wreturn-type]
50 | }
| ^
/.../TMP/cloud_storage-master/service_clients/service_client.h: At global scope:
/.../TMP/cloud_storage-master/service_clients/service_client.h:68:19: error: ‘string’ in namespace ‘std::__cxx11’ does not name a type
68 | std::__cxx11::string url_encode(const std::__cxx11::string& s);
| ^~~~~~
/.../TMP/cloud_storage-master/plugin_utils.cpp: In function ‘nlohmann::json& get_connection_config(nlohmann::json&, std::string&)’:
/.../TMP/cloud_storage-master/plugin_utils.cpp:141:12: warning: reference to local variable ‘j_null’ returned [-Wreturn-local-addr]
141 | return j_null;
| ^~~~~~
/.../TMP/cloud_storage-master/plugin_utils.cpp:140:20: note: declared here
140 | nlohmann::json j_null(nlohmann::json::value_t::null);
| ^~~~~~
In file included from /.../TMP/cloud_storage-master/plugin_utils.h:25,
from /.../TMP/cloud_storage-master/library.cpp:30:
/.../TMP/cloud_storage-master/service_clients/service_client.h: In member function ‘virtual const char* service_client_exception::what() const’:
/.../TMP/cloud_storage-master/service_clients/service_client.h:50:5: warning: no return statement in function returning non-void [-Wreturn-type]
50 | }
| ^
/.../TMP/cloud_storage-master/service_clients/service_client.h: At global scope:
/.../TMP/cloud_storage-master/service_clients/service_client.h:68:19: error: ‘string’ in namespace ‘std::__cxx11’ does not name a type
68 | std::__cxx11::string url_encode(const std::__cxx11::string& s);
| ^~~~~~
make[3]: *** [CMakeFiles/cloud_storage.dir/build.make:76: CMakeFiles/cloud_storage.dir/plugin_utils.cpp.o] Ошибка 1
make[3]: *** Ожидание завершения заданий…
make[3]: *** [CMakeFiles/cloud_storage.dir/build.make:63: CMakeFiles/cloud_storage.dir/library.cpp.o] Ошибка 1
make[2]: *** [CMakeFiles/Makefile2:73: CMakeFiles/cloud_storage.dir/all] Ошибка 2
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/cloud_storage.dir/rule] Ошибка 2
make: *** [Makefile:118: cloud_storage] Ошибка 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions