0

尝试编译cpprestsdk时出现以下错误:

/Users/radu/work/casablanca/Release/libs/websocketpp/websocketpp/transport/asio/connection.hpp:425:24:错误:没有匹配函数调用'make_shared' m_strand = lib::make_shared(^~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory :4808:1:注意:候选模板被忽略:模板参数'_Tp'的无效显式指定参数make_shared(_Args&& ...__args)

我有maxOS High Sierra

$ g++ --version    
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin17.4.0
Thread model: posix
4

1 回答 1

1

我有同样的问题。修复很简单,试试这个:转到您的websocketpp文件夹,切换到master branch最新pull的更改。它对我有用。

于 2018-02-06T09:43:15.393 回答