I want to start using Boost libs in my code, so I downloaded the lib and I set them on my C drive that C:\Boost\1.67.0\MSVC\2013
. I followed their Getting Started on Windows tuto everything it set up.
On Qt Creator I create a new project inside the .pro
the file I had added the link to the libs repository like so
INCLUDEPATH += C:/Boost/1.67.0/MSVC/2013
LIBS += C:/Boost/1.67.0/MSVC/2013/stage/lib
So the final step is to test Boost with the simple test code they provided
#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;
}
}
However, I got this linking error though
error: LNK1181: cannot open input file 'C:\Boost\1.67.0\MSVC\2013\stage\lib.obj'
I don't know where did I miss it?