title: Blowfish and undefined reference to `BF_set_key'
body: <p>I have installed Win64 OpenSSL v1.0.1b and Visual C++ 2008 Redistributables from this page <a href="http://slproweb.com/products/Win32OpenSSL.html" rel="nofollow">http://slproweb.com/products/Win32OpenSSL.html</a> and added compiler (<code>C:\OpenSSL-Win64\include</code>) and linker paths (<code>C:\OpenSSL-Win64\bin</code>, <code>C:\OpenSSL-Win64\lib</code>, <code>C:\OpenSSL-Win64</code>) to Code::Blocks, but I still cannot compile my program.</p>
  
  <p>Source code:</p>
  
  <pre><code>#include &lt;cstring&gt;
  #include &lt;openssl/blowfish.h&gt;
  
  int main() {
      const char * key = "aaabbbcccdddeeefffggghh";
      BF_KEY bfKey;
  
      BF_set_key(&amp;bfKey, strlen(key), (const unsigned char *) key);
  
      return 0;
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>obj\Release\main.o:main.cpp|| undefined reference to `BF_set_key'|
  </code></pre>
  
  <p>I tried to add <code>-lssl</code>, <code>-lopenssl</code>, <code>-llibssl</code>, <code>-lcrypto</code>, but it doesn't work. Then I can see another error:</p>
  
  <pre><code>ld.exe||cannot find -lssl|
  </code></pre>
  
  <p>I have no idea (and Google also) what to do. Any ideas what I do wrong?</p>