C++ URDL 编译错误与 Xcode 6.1 / LLVM 6.0

C++ URDL Compile Errors with Xcode 6.1 / LLVM 6.0

本文关键字:LLVM Xcode URDL 编译 错误 C++      更新时间:2023-10-16

我想包含名为URDL的C++ Libary。我正在使用 Boost 1.56 在 Xcode 上使用 Clang 编译器开发一个程序。

作为一个示例项目,我在这里使用了这段代码,并在我的 Xcode 项目的设置中包含 Boost Libaries- 和 Include-Path。

#include <iostream> 
#define URDL_HEADER_ONLY 1
#include <boost/array.hpp>
#include <urdl/http.hpp>
#include <urdl/istream.hpp>
int main(int argc, const char * argv[])
{
  urdl::istream is;
  return 0;
}

然后我编译,我得到以下错误:

在 http.ipp 中,来自 URDL

/Users/maximilian/XcodeProjects/Libaries/urdl-0.1/include/urdl/impl/http.ipp:25:23:     Exception specification of overriding function is more lax than base version

和 handler_invole_helpers.hpp 来自 URDL

/usr/local/Cellar/boost/1.56.0/include/boost/asio/detail/handler_invoke_helpers.hpp:37:3: Call to 'asio_handler_invoke' is ambiguous

我的建议是URDL与此版本的Boost(1.56)不兼容。

提前致谢

勒克斯_

PS:我必须使用URDL

或至少boost::asio(URDL基于URDL,但URDL使我的工作更简单),因为它是大学课程的家庭作业。

问题已解决! :)从Github下载URDL版本,而不是像以前那样下载网站 think-async.com。