OpenSSL compilation and Configuration
Reprinted please indicate the source: http://blog.csdn.net/zhangyang0402
I. Compile OpenSSL in Windows
1. Download and install ActivePerl
2. Download OpenSSL and decompress it using winrar.
3. Use a command prompt to enter the OpenSSL directory and perform the following operations:
(1) execute configure
Perl configure VC-WIN32 -- prefix = C:/openssl-0.9.8k
(2) run the do_ms batch processing in the MS directory.
MS/do_ms
(3) execute make to compile
Nmake-f ms/NTDLL. Mak
(4) test whether the compilation is successful
Nmake-f ms/NTDLL. Mak Test
(5) install to a specified directory
Nmake-f ms/NTDLL. Mak install
4. Check whether the installation is successful.
Under the C:/openssl-0.9.8k directory, three folders are generated: Bin, include, lib
Bin directory: openssl.exe, libeay32.dll, ssleay32.dll
Include Directory: There is an OpenSSL directory with many header files
Lib directory: libeay32.lib, ssleay32.lib
2. Configure the OpenSSL Working Environment (VC ++ 6.0)
1. dll
DLL to be used (libeay32.dll, ssleay32.dll) copy to the directory containing the EXE file, the current working directory of the process, the Windows System directory, the Windows directory, or set the dll Directory to the path environment variable (restart required ).
2. Include
In VC ++ 6.0, tools-> options-> directories-> include files contains a new directory.
C:/openssl-0.9.8k/include;
3. Lib
In VC ++ 6.0, tools-> options-> directories-> library files contains a new directory.
C:/openssl-0.9.8k/lib.
CompileProgramAdd the corresponding library to project-> Settings-> link-> Object/library modules or use # pragme comment (Lib, "***. lib") to introduce