VS 2013无法从Boost工具包中找到lib文件

时间:2016-11-08 17:49:33

标签: regex testing visual-c++ boost shared-libraries

我正在使用“Windows上的Boost入门”指南。 我正在运行代码:

#include <boost/regex.hpp>
#include <iostream>
#include <string>

int main()
{
    std::string line;
    boost::regex pat("^Subject: (Re: |Aw: )*(.*)");

    while (std::cin)
    {
        std::getline(std::cin, line);
        boost::smatch matches;
        if (boost::regex_match(line, matches, pat))
            std::cout << matches[2] << std::endl;
    }
}

我收到错误消息:

Error   1   error LNK1104: cannot open file 'libboost_regex-vc120-mt-gd-1_55.lib'   C:\local\boost_1_55_0\example\example\LINK  example

好吧,COURSE无法打开文件:libboost_regex-vc120-mt-gd-1_55.lib 因为二进制文件的名称是libboost_regex-vc100-mt-gd-1_55.lib

我添加了额外的链接目录,但它没有找到正确的文件。 我怎么能告诉它寻找合适的文件?顺便说一句,使用VS Express 2013,Windows 7。

0 个答案:

没有答案