提高::线程没有窗户库 [英] boost::Thread without library windows

查看:119
本文介绍了提高::线程没有窗户库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想避免建立整个图书馆只是提高::线程。所以我加入库/线程的cpp文件到我的项目,它在海湾合作委员会的工作在MacOS。

I would like to avoid building a whole library for just boost::Thread. So I added the cpp files in libs/Thread to my project and it worked under gcc on MacOS.

然而,在Windows的Visual Studio告诉我

However, Visual Studio on Windows tells me

LINK:致命错误LNK1104:无法打开文件'libboost_thread-VC100-MT-S-1_47.lib

LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc100-mt-s-1_47.lib'

这似乎不正确的我,因为据我所知我没有添加库要求我的项目。为什么它要我补充一点,和如何提高做没有改变我的项目设置?

This doesnt seem right to me since AFAIK I didnt add a library requirement to my project. Why does it want me to add that and how does boost do it without changing my project settings?

还是我错了毕竟...

Or am I mistaken after all...

任何想法?

推荐答案

添加BOOST_ALL_NO_LIB您pre-处理器定义将继续提振包从自动连接在Windows上。

Adding BOOST_ALL_NO_LIB to your pre-processor definitions will keep boost packages from "auto-linking" on Windows.

这篇关于提高::线程没有窗户库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆