title: using OpenSSL in Visual Studio 2012
body: <p>I have downloaded the latest release version of Openssl from <a href="http://www.openssl.org/source/" rel="nofollow noreferrer">http://www.openssl.org/source/</a></p>
  
  <p>I would like to use it in Visual Studio 2012, especially getting the md5/sha-1 hash of a file, but I can not include / setup the environment with the openssl library. To be honest I got confused what to include, and where, however I have read the README-s.</p>
  
  <p>I'm getting this error.</p>
  
  <pre><code>Error   1   error LNK2019: unresolved external symbol _MD5_Init referenced in function _main
  </code></pre>
  
  <p>So my question is, I have downloaded the latest release (openssl-1.0.1e.tar.gz), what should I config in VS2012 to be able to use the lib? Thanks!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This question helped me also in finding the solution. <a href="https://stackoverflow.com/questions/9357751/boost-ssl-with-visual-studio-2010-and-openssl?rq=1">Boost SSL with Visual Studio 2010 and OpenSSL</a></p>
  
  <p>The steps required to use the openSSL lib with VS2012:</p>
  
  <ul>
  <li>download and install a version (I have 64bit OS, however I installed 32bit openssl) from <a href="http://slproweb.com/products/Win32OpenSSL.html" rel="nofollow noreferrer">http://slproweb.com/products/Win32OpenSSL.html</a>. </li>
  <li>New project in VS, then Configuration Properties/C/C++/General/Additional Include Directories: openssl include folder (C:\OpenSSL-Win32\include)</li>
  <li>Linker/General/Additional Library Directiories: C:\OpenSSL-Win32\lib</li>
  <li>Linker/Input/Additional Dependencies :</li>
  </ul>
  
  <blockquote>
    <p>libeay32.lib libeay32MTd.lib libeay32MT.lib libeay32MDd.lib
    libeay32MD.lib ssleay32.lib ssleay32MTd.lib ssleay32MT.lib
    ssleay32MDd.lib ssleay32MD.lib</p>
  </blockquote>
  
  <p>(It was written that I need to only add that one which matches with C/C++/Code Generation/Runtime Library, but It works me this way.)</p>
  
  <ul>
  <li>Copy theese files into current VS folder /VC/lib</li>
  </ul>