title: Static linking with OpenSSL
body: <p>We have a project really similar to the one reported in <a href="https://stackoverflow.com/questions/6437538/vs2010-static-linking-issue">this</a> question where OpenSSL is the starting point of <code>lib B</code>. When compiling the executable (<code>Exe 1</code>), the problem is that we are getting some linking issues that seems to be related to OpenSSL linking.</p>
  
  <pre><code>(cryptlib.obj) LNK2019: unresolved external symbol __alloca_probe_16 referenced in function _OPENSSL_isservice
  (bss_file.obj) LNK2001: unresolved external symbol __alloca_probe_16 
  (b_print.obj)  LNK2019: unresolved external symbol __ftol2_sse referenced in function _roundv
  </code></pre>
  
  <p>Compiling the library doesn't give any error whatsoever. I'm curious to know where are located these functions so that I can add the correct references in the project.</p>
  
  <p>I'm running on Windows 7 with a 64 bits proc, if that can make any difference :)</p>
  
  <p><strong>Edit1</strong><br/>
  Those are errors when compiling in Win32 with VS2010.</p>
  
  <p><strong>Edit2</strong><br/>
  The OpenSSL lib (libeay32.lib) was also compiled with <code>nasm</code> for VS2010 (for Win32).</p>
  
  <p><strong>Edit3</strong><br/>
  If someone could point out a link to build OpenSSL with VS2010 (vc2010) or VS2008 compiler, that would also be helpfull (other than pointing to the InstallW** files in OpenSSL)</p>
  
  <p><strong>Edit4</strong><br/>
  We are also using the Windows DDK 2003, if it can help.</p>