Note Kevlar, you are trying to link against version 8 lib's "Linking... libboost_regex-*vc80*-mt-gd-1_34_1.lib(instances.obj) : error LNK2019: " Download and replace auto_link.hpp (most likely found here) C:\Program Files\boost\boost_1_34_1\boost\config with the one from http://svn.boost.org/trac/boost/browser/trunk/boost/config/auto_link.hpp Also your user-config.jam file if you want to rebuild all the libraries needs these lines; # MSVC configuration using msvc : 9.0 : "C:/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl.exe" ; # C:\Program Files\Microsoft Visual Studio 9.0\VC\bin This file needs to be in the user default directory in Vista. So the Kevlar directory, if that is your Vista Log In name. Also if you read this post, it will also list a couple other fixes I made, thanks to Greorgy Jikia, about half way down the post. http://www.nabble.com/Preliminary-0.9.0-tarballs---VC%2B%2B-2008-Express-td1... Dave Kevlar wrote:
I'm also having the same problem after installing from the BoostPro Installer with VC9.
Just going off the basic example, my program is:
#include "stdafx.h" #include
#include <iostream> #include <string> using namespace std;
#ifdef WIN32 int _tmain(int argc, _TCHAR* argv[]) #else int main() #endif { 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; } }
And I'm getting: Linking... libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2019: