I'm working from the "Boost Getting Started on Windows" guide. I'm running the code:
#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;
}
}
I get the error message:
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
Well, of COURSE it can't open the file: libboost_regex-vc120-mt-gd-1_55.lib because the name of the binary is libboost_regex-vc100-mt-gd-1_55.lib
I added the additional link directory, but it's not looking for the right file. How can I tell it to look for the right file? BTW, using VS Express 2013, windows 7.
Aucun commentaire:
Enregistrer un commentaire