C++ URDL 编译错误与 Xcode 6.1 / LLVM 6.0
C++ URDL Compile Errors with Xcode 6.1 / LLVM 6.0
我想包含名为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。
相关文章:
- 如何将 I->getType() 作为参数传递给 llvm 中的 CreateCall?
- ld:bind_at_load和-bitcode_bundle(Xcode设置ENABLE_bitcode=YES)不能
- 将尾部调用void(i32,..)位转换为llvm::函数以获取FnAttribute
- 在没有Xcode的情况下在Mac捆绑包中嵌入框架
- 是否可以将llvm::FunctionType转换为C/C++原始函数指针
- llvm构建器向基本块添加终止符
- 正在LLVM中检测整数比较条件
- 如何在LLVM中dyn_cast以识别StoreInst?
- 由于 LLVM 错误,Xcode 无法编译
- Xcode&llvm dyld:Library not loaded:@rpath/libLTO.dylib
- LLVM 3.8:使用AD IDE(XCODE)实现通行证
- 为什么他的语法正确的程序不能在带有llvm编译器的Xcode IDE上编译?
- Xcode 5 带有 %s 格式说明符的 LLVM printf 在调试控制台中不起作用
- C++ URDL 编译错误与 Xcode 6.1 / LLVM 6.0
- Xcode/LLVM catch 子句与派生类型不匹配
- catch(..)吞噬xcode llvm 3.0中的所有其他catch
- xcode 4.2苹果LLVM编译器3.0是否与c++异常完全兼容
- Xcode LLVM 5.0错误-将来不会出现命令行参数硬错误
- 为什么我从 MacPort 使用 XCode 的 llvm 与 clang++ 获得更快的二进制文件?
- c++标准库在.mm文件中找到,但在.h文件中找不到(Xcode 4.5 LLVM GCC 4.2)