<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How-To: Build libtorrent DLL for Windows in C++</title>
	<atom:link href="http://softwerkz.net/2009/09/libtorrent/feed/" rel="self" type="application/rss+xml" />
	<link>http://softwerkz.net/2009/09/libtorrent/</link>
	<description>experience it!</description>
	<lastBuildDate>Tue, 07 Sep 2010 10:17:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: softz</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2712</link>
		<dc:creator>softz</dc:creator>
		<pubDate>Thu, 22 Jul 2010 02:10:12 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2712</guid>
		<description>Hi Joon,

Did you run &quot;perl Configure VC-WIN32 --prefix=%OpenSSL%&quot; with Visual Studio 2008 Command Prompt under the directory of your OpenSSL folder?

Example (for my test case here): 
D:\openssl-1.0.0a&gt;perl Configure VC-WIN32 --prefix=%OpenSSL%

Your results will be something like the following:

&lt;pre&gt;&lt;code&gt;
Configuring for VC-WIN32
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-shared       [default]
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=1
CC            =cl
CFLAG         =-DOPENSSL_THREADS  -DDSO_WIN32 -W3 -WX -Gs0 -GF -Gy -nologo &lt;strong&gt;-DOPENSSL_SYSNAME_WIN32&lt;/strong&gt; -DWIN32_LEAN_AND_MEAN -DL_ENDIAN ... &lt; more of the definitions here &gt;
EX_LIBS       =
CPUID_OBJ     =x86cpuid.o
BN_ASM        =bn-586.o co-586.o x86-mont.o
DES_ENC       =des-586.o crypt586.o
AES_ENC       =aes-586.o
BF_ENC        =bf-586.o
CAST_ENC      =cast-586.o
RC4_ENC       =rc4-586.o
RC5_ENC       =rc5-586.o
MD5_OBJ_ASM   =md5-586.o
SHA1_OBJ_ASM  =sha1-586.o sha256-586.o sha512-586.o
RMD160_OBJ_ASM=rmd-586.o
CMLL_ENC=     =cmll-x86.o
PROCESSOR     =
RANLIB        =true
ARFLAGS       =
PERL          =perl
THIRTY_TWO_BIT mode
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined

Configured for VC-WIN32.&lt;/code&gt;&lt;/pre&gt;

If you look at the CFLAG values, you will find -DOPENSSL_SYSNAME_WIN32, this actually disable the #include &lt;strings.h&gt; in the o_str.c

If look into the file o_str.c, you&#039;ll see:

&lt;pre&gt;&lt;code&gt;
#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) &amp;&amp; \
    !defined(OPENSSL_SYSNAME_WIN32) &amp;&amp; \
    !defined(NETWARE_CLIB)
# include &lt;strings.h&gt;
#endif&lt;/code&gt;&lt;/pre&gt;

So two checks here. First make sure you are running the command under Visual Studio &lt;Version&gt; Command Prompt and the CFLAG has the mentioned flag.

Also, you can open up the Configure file in the OpenSSL folder. Do a find on &quot;OPENSSL_SYSNAME_WIN32&quot;, you will see it in VC-WIN32 target. You can add it there or re-download the OpenSSL if it&#039;s not there.

Hope it helps.</description>
		<content:encoded><![CDATA[<p>Hi Joon,</p>
<p>Did you run &#8220;perl Configure VC-WIN32 &#8211;prefix=%OpenSSL%&#8221; with Visual Studio 2008 Command Prompt under the directory of your OpenSSL folder?</p>
<p>Example (for my test case here):<br />
D:\openssl-1.0.0a>perl Configure VC-WIN32 &#8211;prefix=%OpenSSL%</p>
<p>Your results will be something like the following:</p>
<pre><code>
Configuring for VC-WIN32
    no-gmp          [default]  OPENSSL_NO_GMP (skip dir)
    no-jpake        [experimental] OPENSSL_NO_JPAKE (skip dir)
    no-krb5         [krb5-flavor not specified] OPENSSL_NO_KRB5
    no-md2          [default]  OPENSSL_NO_MD2 (skip dir)
    no-rc5          [default]  OPENSSL_NO_RC5 (skip dir)
    no-rfc3779      [default]  OPENSSL_NO_RFC3779 (skip dir)
    no-shared       [default]
    no-store        [experimental] OPENSSL_NO_STORE (skip dir)
    no-zlib         [default]
    no-zlib-dynamic [default]
IsMK1MF=1
CC            =cl
CFLAG         =-DOPENSSL_THREADS  -DDSO_WIN32 -W3 -WX -Gs0 -GF -Gy -nologo <strong>-DOPENSSL_SYSNAME_WIN32</strong> -DWIN32_LEAN_AND_MEAN -DL_ENDIAN ... < more of the definitions here >
EX_LIBS       =
CPUID_OBJ     =x86cpuid.o
BN_ASM        =bn-586.o co-586.o x86-mont.o
DES_ENC       =des-586.o crypt586.o
AES_ENC       =aes-586.o
BF_ENC        =bf-586.o
CAST_ENC      =cast-586.o
RC4_ENC       =rc4-586.o
RC5_ENC       =rc5-586.o
MD5_OBJ_ASM   =md5-586.o
SHA1_OBJ_ASM  =sha1-586.o sha256-586.o sha512-586.o
RMD160_OBJ_ASM=rmd-586.o
CMLL_ENC=     =cmll-x86.o
PROCESSOR     =
RANLIB        =true
ARFLAGS       =
PERL          =perl
THIRTY_TWO_BIT mode
BN_LLONG mode
RC4_INDEX mode
RC4_CHUNK is undefined

Configured for VC-WIN32.</code></pre>
<p>If you look at the CFLAG values, you will find -DOPENSSL_SYSNAME_WIN32, this actually disable the #include <strings .h> in the o_str.c</p>
<p>If look into the file o_str.c, you&#8217;ll see:</p>
<pre><code>
#if !defined(OPENSSL_IMPLEMENTS_strncasecmp) &#038;&#038; \
    !defined(OPENSSL_SYSNAME_WIN32) &#038;&#038; \
    !defined(NETWARE_CLIB)
# include <strings .h>
#endif</strings></code></pre>
<p>So two checks here. First make sure you are running the command under Visual Studio <version> Command Prompt and the CFLAG has the mentioned flag.</p>
<p>Also, you can open up the Configure file in the OpenSSL folder. Do a find on &#8220;OPENSSL_SYSNAME_WIN32&#8243;, you will see it in VC-WIN32 target. You can add it there or re-download the OpenSSL if it&#8217;s not there.</p>
<p>Hope it helps.</version></strings></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joon</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2710</link>
		<dc:creator>Joon</dc:creator>
		<pubDate>Wed, 21 Jul 2010 23:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2710</guid>
		<description>Hi, I have gone through OpenSSL, but I can&#039;t find libeay32lib and ssleay32.lib in  $(OpenSSL)\out32. hm... weird. 
oh I just found an error after I ran nmake -f ms\nt.mak
     
cl : Command line warning D9035 : option &#039;O&#039; has been deprecated and will be rem
oved in a future release
o_str.c
.\crypto\o_str.c(66) : fatal error C1083: Cannot open include file: &#039;strings.h&#039;:
 No such file or directory
NMAKE : fatal error U1077: &#039;&quot;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE&quot;&#039; : return code &#039;0x2&#039;
Stop.


Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, I have gone through OpenSSL, but I can&#8217;t find libeay32lib and ssleay32.lib in  $(OpenSSL)\out32. hm&#8230; weird.<br />
oh I just found an error after I ran nmake -f ms\nt.mak</p>
<p>cl : Command line warning D9035 : option &#8216;O&#8217; has been deprecated and will be rem<br />
oved in a future release<br />
o_str.c<br />
.\crypto\o_str.c(66) : fatal error C1083: Cannot open include file: &#8216;strings.h&#8217;:<br />
 No such file or directory<br />
NMAKE : fatal error U1077: &#8216;&#8221;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN<br />
\cl.EXE&#8221;&#8216; : return code &#8217;0&#215;2&#8242;<br />
Stop.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: softz</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2688</link>
		<dc:creator>softz</dc:creator>
		<pubDate>Wed, 21 Jul 2010 01:46:18 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2688</guid>
		<description>Hi Joon,

If you have gone through the building of OpenSSL library, you&#039;ll find libeay32.lib and ssleay32.lib in $(OpenSSL)\out32, depending on where you placed your OpenSSL folder (e.g. C:\OpenSSL\out32). Let me know if you have any problem getting that. 

Of course, the compilation of OpenSSL can be removed by specifying a flag in the Preprocessor Definitions. However, I won&#039;t go into it now. If you want to know more, do let me know.</description>
		<content:encoded><![CDATA[<p>Hi Joon,</p>
<p>If you have gone through the building of OpenSSL library, you&#8217;ll find libeay32.lib and ssleay32.lib in $(OpenSSL)\out32, depending on where you placed your OpenSSL folder (e.g. C:\OpenSSL\out32). Let me know if you have any problem getting that. </p>
<p>Of course, the compilation of OpenSSL can be removed by specifying a flag in the Preprocessor Definitions. However, I won&#8217;t go into it now. If you want to know more, do let me know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: softz</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2687</link>
		<dc:creator>softz</dc:creator>
		<pubDate>Wed, 21 Jul 2010 01:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2687</guid>
		<description>Hi Phil,

It should reside in the folder where your libtorrent.dll located. It is created/compiled when you build the libtorrent DLL. My guess, if you didn&#039;t change your project settings, it should be in the debug/release folder of in your solution folder (depending which configuration you build it with).</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>It should reside in the folder where your libtorrent.dll located. It is created/compiled when you build the libtorrent DLL. My guess, if you didn&#8217;t change your project settings, it should be in the debug/release folder of in your solution folder (depending which configuration you build it with).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joon</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2685</link>
		<dc:creator>Joon</dc:creator>
		<pubDate>Wed, 21 Jul 2010 00:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2685</guid>
		<description>Step 6 for building libtorrent DLL. When linking those libraries, I could not locate libeay32.lib or ssleay32.lib, is this a problem?</description>
		<content:encoded><![CDATA[<p>Step 6 for building libtorrent DLL. When linking those libraries, I could not locate libeay32.lib or ssleay32.lib, is this a problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2684</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Wed, 21 Jul 2010 00:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2684</guid>
		<description>Hey, for testing the libtorrent library, for steps 4/5 where is the libtorrent.lib located. Did we generate that when making the libtorrent DLL?</description>
		<content:encoded><![CDATA[<p>Hey, for testing the libtorrent library, for steps 4/5 where is the libtorrent.lib located. Did we generate that when making the libtorrent DLL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: softz</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2418</link>
		<dc:creator>softz</dc:creator>
		<pubDate>Fri, 09 Jul 2010 14:20:23 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2418</guid>
		<description>Sure thing, I&#039;ve sent you the library for both debug and release versions. Hope they help. :)</description>
		<content:encoded><![CDATA[<p>Sure thing, I&#8217;ve sent you the library for both debug and release versions. Hope they help. <img src='http://softwerkz.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nitpe</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-2401</link>
		<dc:creator>nitpe</dc:creator>
		<pubDate>Thu, 08 Jul 2010 05:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-2401</guid>
		<description>Hello, you could me send the compiled libtorrent.lib and libtorrentd.lib ?
I had thousands of problems to compile in VC9.0

my email is:
power.eptin [a] gmail . com

thanks</description>
		<content:encoded><![CDATA[<p>Hello, you could me send the compiled libtorrent.lib and libtorrentd.lib ?<br />
I had thousands of problems to compile in VC9.0</p>
<p>my email is:<br />
power.eptin [a] gmail . com</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: softz</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-673</link>
		<dc:creator>softz</dc:creator>
		<pubDate>Mon, 29 Mar 2010 04:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-673</guid>
		<description>&lt;strong&gt;Hi Brad&lt;/strong&gt;,
May I know what are the errors you got? Also, where you using /MT or /MD to do your compilation?</description>
		<content:encoded><![CDATA[<p><strong>Hi Brad</strong>,<br />
May I know what are the errors you got? Also, where you using /MT or /MD to do your compilation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad</title>
		<link>http://softwerkz.net/2009/09/libtorrent/comment-page-1/#comment-669</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Sun, 28 Mar 2010 06:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://softwerkz.net/?p=18#comment-669</guid>
		<description>This is awesome! But I can&#039;t get it working. I&#039;m trying to build libtorrent as a static library, but I keep getting errors (which the debugger cannot catch). The libtorrent website says this:

If you link statically to the runtime library, you cannot build libtorrent as a shared library (DLL), since you will get separate heaps in the library and in the client application. It will result in crashes and possibly link errors.

I might be doing it wrong. If you can show me how to make a static version that would be awesome!</description>
		<content:encoded><![CDATA[<p>This is awesome! But I can&#8217;t get it working. I&#8217;m trying to build libtorrent as a static library, but I keep getting errors (which the debugger cannot catch). The libtorrent website says this:</p>
<p>If you link statically to the runtime library, you cannot build libtorrent as a shared library (DLL), since you will get separate heaps in the library and in the client application. It will result in crashes and possibly link errors.</p>
<p>I might be doing it wrong. If you can show me how to make a static version that would be awesome!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
