error: use of deleted function boost::shared_ptr 问题解决
2016-07-03 15:03
627 查看
问题描述
编译 muduo网络库(1.0.8 版本)时出现错误: error: use of deleted function ‘boost::shared_ptr<muduo::TimeZone::Data>::shared_ptr(const boost::shared_ptr<muduo::TimeZone::Data>&)’ this_type(r).swap(*this);背景
使用的 g++ 版本:g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1使用的 boost 版本:libboost1.46-dev
Linux 系统:Ubuntu 12.04.5 LTS
产生原因
安装的 boost 版本与安装的 g++ 版本不匹配问题解决
将 boost1.46 更新至最新版。见http://blog.csdn.net/wohenfanjian/article/details/51815133相关文章推荐
- Aut2Exe编译au3脚本为可执行文件
- CentOS 6.3下编译安装Ruby 2.0笔记
- 把Lua编译进nginx步骤方法
- Lua中编译执行代码相关的函数详解
- Chrome Visual Studio 2005下的编译过程
- Windows下使用Cygwin编译MySQL客户端
- android的编译和运行过程深入分析
- c#中xml文档注释编译dll引用到其它项目示例
- Lua cjson模块编译笔记及错误解决方法
- SQLSERVER编译与重编译发生场景及重用的利弊介绍
- 浅析使用Turck-mmcache编译来加速、优化PHP代码
- 如何编译libfreetype方法详解
- 深入理解C语言中编译相关的常见错误
- 在VS2008中编译MYSQL5.1.48的方法
- Nginx编译参数大全 configure参数中文详解
- centos下编译安装mysql报错解决方案
- Lua的编译、执行和调试技术介绍
- C/C++编译器GCC下的常用编译命令总结
- Mac下使用Eclipse编译C/C++文件出现 launch failed, binary not found 解决方案
- 简单分析针对ARM平台的C语言程序的编译问题