title: Using curl with VS2017, x64
body: <p>No duplicate: I have read several articles about compiling Curl but I have still trouble and it seems to be a 32 vs. 64 bit problem. This is what I did:</p>
  
  <ul>
  <li>Open the "x64 Native Tools command line prompt for VS2017"</li>
  <li>Unzip curl7.64, cd to winbuild and</li>
  <li>C:\repoWOF\dev\3rdParty\curl-7.64.0\winbuild>nmake /f Makefile.vc mode=dll VC=15 ENABLE_WINSSL=yes MACHINE=x64</li>
  </ul>
  
  <p>This command creates builds/libcurl-vc15-x64-release-dll-ipv6-sspi-winssl/ with the bin, lib and include subdirs as expected and I can even run </p>
  
  <pre><code>C:\repoWOF\dev\3rdParty\curl-7.64.0\builds\libcurl-vc15-x64-release-dll-ipv6-sspi-winssl\bin&gt;curl.exe
  curl: try 'curl --help' or 'curl --manual' for more information
  </code></pre>
  
  <p>...which is an indication that libCurl works. However, when libCurl is linked with another software then this software crashes ("This application was unable to start correctly (0x00007b)"). I have used Dependency Walker with libcurl.dll and with the final software (netlicensing) that crashes. Here is the output for libcurl.dll:</p>
  
  <p><a href="https://i.stack.imgur.com/azEI5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/azEI5.png" alt="enter image description here"></a></p>
  
  <p>And here is Dependency Walker for the netlicensing software:</p>
  
  <p><a href="https://i.stack.imgur.com/A9nyQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A9nyQ.png" alt="enter image description here"></a></p>
  
  <p>..it shows two entries with x86 instead of x64 which is <em>presumably</em> the problem. I can only imagine that these two libs (SSLEAY32.DLL and LIBEAY32.DLL) come from Curl. Any hints?</p>