title: gnuplot-iostream not linking to boost
body: <p>Hi I'm trying to use gnuplot-iostream, at the minute I'm just trying to get the code <a href="http://www.stahlke.org/dan/gnuplot-iostream/" rel="nofollow">here</a> working. When I try to combile I get errors in the linker saying:</p>
  
  <pre><code>In function `stream&lt;int, boost::iostreams::file_descriptor_flags&gt;':
  /usr/include/boost/iostreams/stream.hpp:130: undefined reference to `boost::iostreams::file_descriptor_sink::file_descriptor_sink(int, boost::iostreams::file_descriptor_flags)'
  
  In function `boost::iostreams::file_descriptor_sink boost::iostreams::detail::wrap&lt;boost::iostreams::file_descriptor_sink&gt;(boost::iostreams::file_descriptor_sink const&amp;, boost::disable_if&lt;boost::iostreams::is_std_io&lt;boost::iostreams::file_descriptor_sink&gt;, void&gt;::type*)':
  /usr/include/boost/iostreams/detail/wrap_unwrap.hpp:53: undefined reference to `boost::iostreams::file_descriptor_sink::file_descriptor_sink(boost::iostreams::file_descriptor_sink const&amp;)'
  
  In function `concept_adapter':
  /usr/include/boost/iostreams/detail/adapter/concept_adapter.hpp:67: undefined reference to `boost::iostreams::file_descriptor_sink::file_descriptor_sink(boost::iostreams::file_descriptor_sink const&amp;)'
  /usr/include/boost/iostreams/detail/adapter/concept_adapter.hpp:38: undefined reference to `boost::iostreams::file_descriptor_sink::file_descriptor_sink(boost::iostreams::file_descriptor_sink const&amp;)'
  
  In function `long boost::iostreams::detail::write_device_impl&lt;boost::iostreams::output&gt;::write&lt;boost::iostreams::file_descriptor_sink&gt;(boost::iostreams::file_descriptor_sink&amp;, boost::iostreams::char_type_of&lt;boost::iostreams::file_descriptor_sink&gt;::type const*, long)':
  /usr/include/boost/iostreams/write.hpp:121: undefined reference to `boost::iostreams::file_descriptor::write(char const*, long)'
  
  In function `void boost::iostreams::detail::close_impl&lt;boost::iostreams::closable_tag&gt;::close&lt;boost::iostreams::file_descriptor_sink&gt;(boost::iostreams::file_descriptor_sink&amp;, std::_Ios_Openmode)':
  /usr/include/boost/iostreams/close.hpp:224: undefined reference to `boost::iostreams::file_descriptor::close()'
  
  In function `std::fpos&lt;__mbstate_t&gt; boost::iostreams::detail::seek_device_impl&lt;boost::iostreams::any_tag&gt;::seek&lt;boost::iostreams::file_descriptor_sink&gt;(boost::iostreams::file_descriptor_sink&amp;, long, std::_Ios_Seekdir, std::_Ios_Openmode)':
  /usr/include/boost/iostreams/seek.hpp:137: undefined reference to `boost::iostreams::file_descriptor::seek(long, std::_Ios_Seekdir)'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Note I have boost installed and have previously compiled programs that use iostream.
  Any help massively appreciated. Thanks</p>