当试图包含'#包括LT&;升压/ regex.hpp>'我得到:1> LINK:致命错误LNK1104:无法打开文件'libboost_regex-VC100-MT-GD-1_39.lib“ [英] When trying to include '#include <boost/regex.hpp>' I get: 1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_39.lib'

查看:352
本文介绍了当试图包含'#包括LT&;升压/ regex.hpp>'我得到:1> LINK:致命错误LNK1104:无法打开文件'libboost_regex-VC100-MT-GD-1_39.lib“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道为什么我得到的是,我从网上下载 rel=\"nofollow\">,虽然我有一个lib称为' libboost_regex-vc90-MT-GD-1_39.lib我还没有一个被称为libboost_regex-VC100-MT-GD-1_39.lib',重命名一个与vc90到VC100的作品,但我不知道这是理想的解决方案?

 的#includestdafx.h中
#包括LT&;&正则表达式GT;
#包括LT&;升压/ array.hpp>
#包括LT&;升压/ regex.hpp>
#定义BOOST_ALL_NO_LIBINT _tmain(INT ARGC,_TCHAR *的argv [])
{
  提高::数组< INT,10 -10;一个;
  提高:: SMATCH秒;  的getchar();
    返回0;
}


解决方案

您可能正在使用Visual Studio 2010(这是VC100来自),但下载的lib目录与2008年(VC9)建

Visual Studio 2010中自带TR1,包括<正则表达式> 和享受

Not sure why i get that, I downloaded libs from here and while I have a lib called 'libboost_regex-vc90-mt-gd-1_39.lib I don't have one which is called 'libboost_regex-vc100-mt-gd-1_39.lib', renaming the one with vc90 to vc100 works but I'm not sure if this is the ideal solution?

#include "stdafx.h"
#include <regex>
#include <boost/array.hpp>
#include <boost/regex.hpp>
#define BOOST_ALL_NO_LIB 

int _tmain(int argc, _TCHAR* argv[])
{
  boost::array<int, 10> a;
  boost::smatch s;

  getchar();
    return 0;
}

解决方案

You are probably using Visual Studio 2010 (this is where vc100 comes from), but the downloaded lib was built with 2008 (vc9)

Visual Studio 2010 comes with TR1, include <regex> and enjoy.

这篇关于当试图包含'#包括LT&;升压/ regex.hpp&GT;'我得到:1&GT; LINK:致命错误LNK1104:无法打开文件'libboost_regex-VC100-MT-GD-1_39.lib“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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