BCB6.0编译boost 1.39.0的thread库
来源:互联网 发布:采访 知乎 编辑:程序博客网 时间:2024/05/28 15:58
BCB6.0编译boost 1.39.0的thread库
问题
在BCB6.0下编译
使用如下指令编译boost 1.39.0的thread库,使用如下指令
bjam --toolset=borland-6.0 --with-thread stage debug threading=multi link=shared
进行编译,将出现如下错误:
[C++ Error] thread.hpp(344): E2247 'thread::thread(thread &)' is not accessible
提示为thread::thread(thread &)收到保护,不可访问。
解决办法
修改源码,将thread::thread(thread &)方法的访问限制改为public。
打开文件V:\boost\boost_1_39_0\boost\thread\detail\thread.hpp
定位108行代码,如下
class BOOST_THREAD_DECL thread
{
private:
//thread(thread&);
thread& operator=(thread&);
将thread(thread&);方法注释,并将该方法的声明放到public处,如代码146行,如下
public:
thread();
~thread();
thread(thread&);
备注:编译开源项目,不到万不得已最好不要去修改源码。
问题
在BCB6.0下编译
使用如下指令编译boost 1.39.0的thread库,使用如下指令
bjam --toolset=borland-6.0 --with-thread stage debug threading=multi link=shared
进行编译,将出现如下错误:
[C++ Error] thread.hpp(344): E2247 'thread::thread(thread &)' is not accessible
提示为thread::thread(thread &)收到保护,不可访问。
解决办法
修改源码,将thread::thread(thread &)方法的访问限制改为public。
打开文件V:\boost\boost_1_39_0\boost\thread\detail\thread.hpp
定位108行代码,如下
class BOOST_THREAD_DECL thread
{
private:
//thread(thread&);
thread& operator=(thread&);
将thread(thread&);方法注释,并将该方法的声明放到public处,如代码146行,如下
public:
thread();
~thread();
thread(thread&);
备注:编译开源项目,不到万不得已最好不要去修改源码。
- BCB6.0编译boost 1.39.0的thread库
- (原创)boost中thread库的编译
- VS2010 编译 boost thread库
- BOOST库的thread
- 用BCB6编译LUA库
- boost 编译 thread asio 等库
- bcb6.0 IdIPWatch.hpp
- Boost::thread库的使用
- 使用boost的thread库
- Boost::thread库的使用
- Boost::thread库的使用
- Boost::thread库的使用
- Boost::thread库的使用
- Boost::thread库的使用
- Boost::thread库的使用
- Boost-Boost库的编译
- C++ boost thread组件, 编译
- Lua Lib在VC下的编译/用BCB6编译LUA库
- hadoop学习过程中用到的一些命令
- 黑马程序员--学习笔记之ADO.Net基础知识
- Android selector item 属性大全(按钮按下不同效果)
- WriteFile 函数解析
- HTML讲解
- BCB6.0编译boost 1.39.0的thread库
- Problem G --square (dfs+剪枝)
- C#编写COM组件
- zend studio 9 wamp 配置
- mac上使用beamer生成幻灯片pdf
- svn up更新文件之标志
- C#调用C/C++ 动态链接库DLL(四) -- 调用C++类
- ReadFile
- 颜色空间