主要流程看这里
遇到的几个问题:
1.cannot open perl script "Configure": no such file or directory
解决:Configure是openssl解压包中的一个文件,所以cmd需要进入到解压包所在目录
2.编译报错
tmp32\sha1-586.asm(1427) : error A2070: invalid instruction operands
tmp32\sha1-586.asm(1571) : error A2070: invalid instruction operands
解决:重下一个低版本的openssl
3.如何编译debug版本的lib
perl Configure VC-WIN32 --prefix=e:\ release版
perl Configure debug-VC-WIN32 --prefix=e:\ debug版本
4.工程链接报错
Error lnk2026: module unsafe for safeseh image
解决:
Right-click on your project ->
Properties ->
Configuration Properties ->
Linker ->
Advanced and changed "Image Has Safe Exception Handlers" to "No (/SAFESEH:NO)"