将Boost库添加到Windows Eclipse中的C ++项目 [英] Adding Boost Library to a C++ project in Windows Eclipse

查看:161
本文介绍了将Boost库添加到Windows Eclipse中的C ++项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Windows上使用安装程序安装了Boost Library,我试图在Eclipse中链接到库,但没有任何运气。我尝试通过项目属性 - > C / C ++构建 - >设置 - > MinGW C ++链接器 - >库,并根据本网站添加参考boost_filesystem: http://www.ferdychristant.com/blog//archive/DOMM-76JN6N ,但我认为只适用于Unix版本。每次我编译我得到错误:找不到-lboost_filesystem。我已经扫过网络,但是找不到在Windows平台下在Eclipse中正确使用Boost的方法。

解决方案

我认为 Eclipse for Visual Studio C ++ Developers(也有boost库的解释) a>是你需要的..


I recently installed the Boost Library on Windows using the installer, I'm trying to link to the library in Eclipse but am not having any luck. I tried going through Project Properties -> C/C++ Build -> Settings -> MinGW C++ Linker -> Libraries and add the reference "boost_filesystem" according to this website: http://www.ferdychristant.com/blog//archive/DOMM-76JN6N , but I think that only applies to Unix variants. Everytime I compile I get the error: "cannot find -lboost_filesystem" . I've scoured the net, but cannot find a way to properly use Boost in Eclipse under a Windows platform. Any help or suggestions are appreciated.

解决方案

I think Eclipse for Visual Studio C++ Developers ( also has explanations for boost library) ) is what you needed..

这篇关于将Boost库添加到Windows Eclipse中的C ++项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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