gpt4 book ai didi

c++ - 尝试包含 '#include ' 时,我得到 : 1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_39.lib'

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:32:24 26 4
gpt4 key购买 nike

不知道为什么会这样,我从 here 下载了库虽然我有一个名为“libboost_regex-vc90-mt-gd-1_39.lib”的库,但我没有一个名为“libboost_regex-vc100-mt-gd-1_39.lib”的库,将 vc90 重命名为 vc100 就可以了但我不确定这是否是理想的解决方案?

#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;
}

最佳答案

您可能使用的是 Visual Studio 2010(这是 vc100 的来源),但下载的库是使用 2008 (vc9) 构建的

Visual Studio 2010 附带 TR1,包括 <regex>并享受。

关于c++ - 尝试包含 '#include <boost/regex.hpp>' 时,我得到 : 1>LINK : fatal error LNK1104: cannot open file 'libboost_regex-vc100-mt-gd-1_39.lib' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1738089/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com