title: Compile std::regex_iterator with gcc
body: <p>I can create .o file with <em>g++ -c test.cpp -std=c++0x</em>, but cant link it, got next errors:</p>
  
  <pre><code>test.cpp:(.text+0xe5): undefined reference to `std::regex_iterator&lt;char const*, char, std::regex_traits&lt;char&gt; &gt;::regex_iterator(char const*, char const*, std::basic_regex&lt;char, std::regex_traits&lt;char&gt; &gt; const&amp;, std::bitset&lt;11u&gt;)'
  test.cpp:(.text+0xf1): undefined reference to `std::regex_iterator&lt;char const*, char, std::regex_traits&lt;char&gt; &gt;::regex_iterator()'
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>#include &lt;regex&gt; 
  #include &lt;iostream&gt; 
  
  #include &lt;string.h&gt;
  
  typedef std::regex_iterator&lt;const char *&gt; Myiter; 
  int main() 
  { 
      const char *pat = "axayaz"; 
      Myiter::regex_type rx("a"); 
      Myiter next(pat, pat + strlen(pat), rx); 
      Myiter end; 
  
  
      return (0); 
  } 
  </code></pre>