macOS未能编译cpprestsdk

macOS未能编译cpprestsdk,macos,compiler-errors,clang,cpprest-sdk,Macos,Compiler Errors,Clang,Cpprest Sdk,当我尝试编译时,出现以下错误: /Users/radu/work/casablanca/Release/libs/websocketpp/websocketpp/transport/asio/connection.hpp:425:24:错误:调用“make_shared”时没有匹配的函数 m_strand=lib::使_共享( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include

当我尝试编译时,出现以下错误:

/Users/radu/work/casablanca/Release/libs/websocketpp/websocketpp/transport/asio/connection.hpp:425:24:错误:调用“make_shared”时没有匹配的函数 m_strand=lib::使_共享( ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/usr/include/c++/v1/memory:4808:1:注意:已忽略候选模板:为模板显式指定的参数无效 参数'\u-Tp' 使共享(_参数&&…_参数)

我有
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

我也遇到了同样的问题。解决方法很简单,请尝试以下方法: 转到您的
websocketpp
文件夹,切换到
master branch
pull
查看最新的更改。这对我很有用