问题描述
不知道为什么我得到的是,我从网上下载 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“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!