本文介绍了如何提升包括::线程在C ++项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是我需要做的包括在我的项目的boost ::线程?我抄了整个主题文件夹到我的工作路径(我希望能够在多台计算机上运行这一点),我得到
From the line #include "thread/thread.hpp"
What gives?
edit:Even if I just link to the boost folder where the precompiled binary installed and I use #include <boost/thread/thread.hpp>
I get
解决方案
Unfortunately boost::thread is not a "header-only" library -- hence you need to have it compiled. There are basically two ways to go around it.
- you download a prebuilt install package from boostpro (assuming that you are on windows) -- http://www.boostpro.com/download
- you can build it yourself - see http://www.boost.org/doc/libs/1_35_0/more/getting_started/index.html
这篇关于如何提升包括::线程在C ++项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!