title: fatal error LNK1104: cannot open file 'libboost_regex-vc90-mt-gd-1_42.lib'
body: <p>i'm trying to use boost regex within my program
  the problem is i get this error...
  the only installation step i did was to add: "C:\Program Files\boost\boost_1_42"
  into the Additional Include Directories...</p>
  
  <p>i'm using VS2008...</p>
  
  <p>trying to implement this:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;boost/regex.hpp&gt;
  
  using namespace std;
  
  int main( ) {
  
     std::string s, sre;
     boost::regex re;
     boost::cmatch matches;
  
     while(true)
     {
        cout &lt;&lt; "Expression: ";
        cin &gt;&gt; sre;
        if (sre == "quit")
        {
           break;
        }
  
        cout &lt;&lt; "String:     ";
        cin &gt;&gt; s;
  
        try
        {
           // Assignment and construction initialize the FSM used
           // for regexp parsing
           re = sre;
        }
        catch (boost::regex_error&amp; e)
        {
           cout &lt;&lt; sre &lt;&lt; " is not a valid regular expression: \""
                &lt;&lt; e.what() &lt;&lt; "\"" &lt;&lt; endl;
           continue;
        }
        // if (boost::regex_match(s.begin(), s.end(), re))
        if (boost::regex_match(s.c_str(), matches, re))
        {
           // matches[0] contains the original string.  matches[n]
           // contains a sub_match object for each matching
           // subexpression
           for (int i = 1; i &lt; matches.size(); i++)
           {
              // sub_match::first and sub_match::second are iterators that
              // refer to the first and one past the last chars of the
              // matching subexpression
              string match(matches[i].first, matches[i].second);
              cout &lt;&lt; "\tmatches[" &lt;&lt; i &lt;&lt; "] = " &lt;&lt; match &lt;&lt; endl;
           }
        }
        else
        {
           cout &lt;&lt; "The regexp \"" &lt;&lt; re &lt;&lt; "\" does not match \"" &lt;&lt; s &lt;&lt; "\"" &lt;&lt; endl;
        }
     }
  }
  </code></pre>
  
  <p>what seems to be the problem ? any additional settings should be made ?</p>