当我尝试编译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
答案 0 :(得分:1)
我遇到了同样的问题。修复很简单,试试这个:
转到websocketpp
文件夹,切换到master branch
和pull
最新更改。它对我有用。