Undefined symbols for architecture x86_64: "_SSLv2_ ..."
<p>I am trying to build a small example for a Telegram Bot library in C++ (<a href="https://github.com/reo7sp/tgbot-cpp#samples" rel="nofollow">https://github.com/reo7sp/tgbot-cpp#samples</a>) but when linking I get this output:</p>

<pre><code>Undefined symbols for architecture x86_64:
  "_SSLv2_client_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libTgBot.a(HttpClient.cpp.o)
  "_SSLv2_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libTgBot.a(HttpClient.cpp.o)
  "_SSLv2_server_method", referenced from:
      boost::asio::ssl::context::context(boost::asio::ssl::context_base::method) in libTgBot.a(HttpClient.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
</code></pre>

<p>using this command:</p>

<pre><code>g++ -std=c++11 main.cpp -l boost_system -l boost_iostreams -l boost_unit_test_framework -l boost_exception -l TgBot -l pthread -l ssl -l crypto -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
</code></pre>

<p>I have openssl 1.0.2 installed: do I have to get a 2.x version? I can't find it with homebrew (my system is OSX 10.9.5)... sorry for the newbie question.</p>