Producing the executable
Compiling this source file will produce the obj_win.obj file, which we will link to kernel32.lib and crypto_w32.obj. But where do we find the kernel32.lib file? This task may not be such a simple one sometimes, although not a difficult one. All system libraries may be found at c:\Program Files\Microsoft SDKs\Windows\vX.X\Lib, where vX.X stands for the version (there will, most likely, be more than one). For 64-bit Windows, the directory would be c:\Program Files (x86)\Microsoft SDKs\Windows\vX.X\Lib. So, let's copy the crypto_w32.obj file to our working directory and try to link it. Open the Developer Command Prompt for VS 2017 command window, as shown in the following screenshot, and navigate to your working directory: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access