Search Options
close
Search the following clips:
All Clips
Sign Up
Install
Learn More
Login
在Windows下编译OpenSSL(VS2005)
hfeeqi
follow
0
10-30-2007 11:18 AM
752 views
tags:
openssl
,
compile
,
build
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Please help Clipmarks...
Medics say crotchbomber may lose the use of his privates
Sherlock Holmes and Dr Watson went on a camping trip.....
Every year, it's the War on Wicca
Can Trees Save Us from Climate Change?
Roses and Glass roses
The US Military Is Exhausted
Garbage city
Indian tribes buy back thousands of acres of land
The First 3-D Image of a Mandelbrot Fractal Is Stunning
visit the
Top Clips page
View the Top Clips from
October 30, 2007
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/40aeae05-fab8-4dc7-a452-aceb07c59b8a/A888DC73-6227-42D9-B4C1-8B69865FCDD0/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.cnblogs.com/shootingstars/archive/2006/02/17/332276.aspx" href="http://www.cnblogs.com/shootingstars/archive/2006/02/17/332276.aspx" style="font-size: 11px;">www.cnblogs.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.cnblogs.com/shootingstars/archive/2006/02/17/332276.aspx"><DIV class="postTitle"> <A href="http://www.cnblogs.com/shootingstars/archive/2006/02/17/332276.html" id="AjaxHolder_ctl01_TitleUrl">在Windows下编译OpenSSL(VS2005)</A> </DIV></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.cnblogs.com/shootingstars/archive/2006/02/17/332276.aspx"><DIV class="postText"> 如何在Windows下编译OpenSSL (Vs2005使用Vc8的cl编译器)<BR />1、安装ActivePerl//初始化的时候,需要用到perl解释器<BR />2、使用VS2005下的Visual Studio 2005 Command Prompt进入控制台模式(这个模式会自动设置各种环境变量)<BR />3、解压缩openssl的包,进入openssl的目录<BR />4、perl configure VC-WIN32<BR />尽量在这个目录下执行该命令,否则找不到Configure文件,或者指定完整的Configure文件路径。<BR />5、ms\do_ms<BR />在解压目录下执行ms\do_ms命令<BR /><DIV>6、nmake -f ms\ntdll.mak</DIV><BR />编译后<BR /><DIV>在openssl解压目录下执行,完成编译后。输出的文件在out32dll里面,包括应用程序的可执行文件、lib文件和dll文件</DIV><BR />注意:在运行第五步时,cl编译器会抱怨说.\crypto\des\enc_read.c文件的read是The POSIX name for this item is deprecated(不被推荐的),建议使用_read。呵呵,我可不想将OpenSSL中的所有的read函数修改为_read。再看cl的错误代码error C2220,于是上MSDN上查找:<BR />warning treated as error - no object file generated<BR /><A href="http://shootingstars.cnblogs.com/admin/d6bc7bf5-c754-4879-909c-8e3a67e2629f.htm">/WX</A> tells the compiler to treat all warnings as errors. Since an error occurred, no object or executable file was generated.<BR /><DIV>是由于设置了/WX选项,将所有的警告都作为错误对待,所以。。。</DIV><BR />于是打开OpenSSL目录下的MS目录下的ntdll.mak文件,将CFLAG的/WX选项去掉,存盘。。。<BR /><DIV>继续执行nmake -f ms\ntdll.mak</DIV><BR />于是成功。。。<BR />(我下载的是openssl-0.9.8a版本) </DIV></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/A888DC73-6227-42D9-B4C1-8B69865FCDD0/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK