<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; c4022</title>
	<atom:link href="http://www.deanlee.cn/tag/c4022/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Compiler warning C4022 when building OpenSSL 0.9.8e On Windows</title>
		<link>http://www.deanlee.cn/windows/compiler-warning-c4022-when-building-openssl-098e-on-windows/</link>
		<comments>http://www.deanlee.cn/windows/compiler-warning-c4022-when-building-openssl-098e-on-windows/#comments</comments>
		<pubDate>Sat, 25 Aug 2007 10:46:15 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[c4022]]></category>

		<category><![CDATA[compile]]></category>

		<category><![CDATA[openssl]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/windows/compile-errorc4022-when-trying-to-build-openssl-098e-on-windows/</guid>
		<description><![CDATA[I got the following compiler error&#160;when building OpenSSL-0.9.8e in Windows environments with Visual studio 2005:
.\apps\enc.c(380) : error C2220: warning treated as error - no &#8216;object&#8217; file generated
.\apps\enc.c(380) : warning C4022: &#8216;BIO_ctrl&#8217; : pointer mismatch for actual parameter 4
Here is the quick fix to solve this compile error:
Open file .\apps\enc.c,Go to line 380:
if (BIO_read_filename(in,inf ]]></description>
			<content:encoded><![CDATA[<p>I got the following compiler error&nbsp;when building <a href="http://www.openssl.org/" target="_blank">OpenSSL-0.9.8e</a> in Windows environments with Visual studio 2005:</p>
<p>.\apps\enc.c(380) : error C2220: warning treated as error - no &#8216;object&#8217; file generated<br />
.\apps\enc.c(380) : warning C4022: &#8216;BIO_ctrl&#8217; : pointer mismatch for actual parameter 4</p>
<p>Here is the quick fix to solve this compile error:</p>
<p>Open file .\apps\enc.c,Go to line 380:</p>
<pre class="prettyprint">if (BIO_read_filename(in,inf <= 0))
{
	perror(inf);
	goto end;
}</pre>
<p>&nbsp;Change it to</p>
<pre class="prettyprint">if (BIO_read_filename(in,(char*)(inf <= 0)))
{
	perror(inf);
	goto end;
}</pre>
<p>you can download the compiled binary <a href="http://www.deanlee.cn/programming/openssl-for-windows/" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/windows/compiler-warning-c4022-when-building-openssl-098e-on-windows/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

