title: Compiling boost_asio/example/ssl/server.cpp on macosx works on linux
body: <p>server.cpp - <a href="http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/server.cpp" rel="nofollow">http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/example/ssl/server.cpp</a></p>
  
  <p>I am trying to build this on my mac. Using the following. (builds fine on my ubuntu system)</p>
  
  <pre><code>g++ -I /usr/local/boost/  sslserver.cpp -o sslserver -lboost_system -lssl -lpthread
  </code></pre>
  
  <p>My libs are located in /usr/local/lib so I tried adding -L /usr/local/lib after the includes. However, I have built other projects before using -lboost_system -lpthread without any issues or specifying the libs.</p>
  
  <p>The error is huge > <a href="https://dl.dropbox.com/u/15586644/error.txt" rel="nofollow">https://dl.dropbox.com/u/15586644/error.txt</a></p>
  
  <p>Its mainly lots of deprecated methods warnings - I doubt anything is deprecated.
  followed by Undefined symbols for architecture x86_64.</p>
  
  <p>How should I go about building server.cpp on MacOSX?</p>