用C ++问题在VC ++ 2010升压安装(无法找到文件) [英] Problem with C++ Boost installation (can't find file) in VC++ 2010

查看:122
本文介绍了用C ++问题在VC ++ 2010升压安装(无法找到文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从 http://www.boostpro.com/download/安装升压1.44与最新的可用的安装程序。然后,我创建了一个VC ++非托管的命令行项目。我说行的#include<升压/ regex.hpp> 作为升压的入门的教程中,我也把升压安装说明进入目录的链接选项。现在当我编译,VS2010将报告致命错误LNK1104:文件libboost_regex-VC100-MT-GD-1_44.lib无法打开。我检查了安装目录,这里只有文件 libboost_regex-VC100-MT-S-1_44.lib (注 -gd - VS -s - )。谁能告诉我是什么问题,我该怎么解决呢?谢谢!

I freshly installed Boost 1.44 with the latest available installer from http://www.boostpro.com/download/. Then I created a VC++ unmanaged commandline project. I added the line #include <boost/regex.hpp> as stated in the Boost Getting Started tutorial, and I also put the Boost installation directory into the linking options. When I compile now, VS2010 reports a fatal error LNK1104: file "libboost_regex-vc100-mt-gd-1_44.lib" cannot be opened. I checked the installation directory and there's only the file libboost_regex-vc100-mt-s-1_44.lib (note -gd- vs -s-). Can anyone tell me what the problem is and how I can solve it? Thanks!

推荐答案

Boost库命名约定上市的入门页

The Boost library naming convention is listed on the Getting Started page.


  • MT 表示多线程启用

  • 先按g 表示CRT库的调试版本有联系

  • D 表示升压的版本库本身,你链接到的调试版本

  • 取值表示CRT库已经由Boost库被静态链接到

  • mt indicates multithreading is enabled
  • g indicates debug versions of the CRT libraries were linked
  • d indicates the version of the boost libraries themselves that you're linking to are debug versions
  • s indicates that the CRT libraries have been statically linked to by the boost libraries

什么是可能发生的事情是,你没有得到BoostPro安装程序下载缺少的味道。

What is probably happening is that you didn't get the BoostPro installer to download the missing flavors.

这篇关于用C ++问题在VC ++ 2010升压安装(无法找到文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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