<?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; visual studio 2005</title>
	<atom:link href="http://www.deanlee.cn/tag/visual-studio-2005/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>How to compile TORCS with visual studio 2005(VC 8.0)</title>
		<link>http://www.deanlee.cn/programming/how-to-compile-torcs-with-visual-studio-2005vc-80/</link>
		<comments>http://www.deanlee.cn/programming/how-to-compile-torcs-with-visual-studio-2005vc-80/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 04:16:26 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[Programming]]></category>

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

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

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

		<category><![CDATA[visual studio 2005]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/programming/how-to-compile-torcs-with-visual-studio-2005vc-80/</guid>
		<description><![CDATA[TORCS is an open source, highly portable multi platform car racing simulation. It is used as ordinary car racing game, as AI racing game and as research platform.

TORCS can be compiled smoothly with Visual C++ 6.0.but you&#8217;ll get lots of compilation errors when trying to compile it with Visual Studio 2005(VC 8).here is the steps [...]]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://torcs.sourceforge.net/">TORCS</a> is an open source, highly portable multi platform car racing simulation. It is used as ordinary car racing game, as AI racing game and as research platform.<br />
<a href="http://www.deanlee.cn/wp-content/uploads/2008/09/windowslivewriterhowtocompiletorcswithvisualstudio2005vc8-9a30image-4.png" rel="lightbox"><img width="454" height="234" src="http://www.deanlee.cn/wp-content/uploads/2008/09/windowslivewriterhowtocompiletorcswithvisualstudio2005vc8-9a30image-thumb-1.jpg" alt="image" /></a></p>
<p><a target="_blank" href="http://torcs.sourceforge.net/">TORCS</a> can be compiled smoothly with Visual C++ 6.0.but you&#8217;ll get lots of compilation errors when trying to compile it with Visual Studio 2005(VC 8).here is the steps to resolve this issue:</p>
<p><span id="more-501"></span></p>
<ul>
<li>change linker option for all projects from /NODEFAULTLIB:&quot;LIBCD&quot; to /NODEFAULTLIB:&quot;LIBC&quot;.</li>
<li>add a new cpp file(for example, vs2008.cpp) to the client project with the following contents :
<pre class="prettyprint">
extern "C"
{
	int __mb_cur_max;
	int errno;
}
</pre>
</li>
<li>add /force:multiple linker option to the client project.</li>
<li>define M_PI in ac3dload.cpp,trackdata.cpp and osspec.h:
<pre class="prettyPrint">
#ifndef M_PI
#define M_PI 3.14159267
#endif
</pre>
</li>
<li>fix errors in type-casting ,such as from sqrt(&#8230;) to sqrt((double)&#8230;)</li>
</ul>
<p>you can <a target="_blank" href="http://deanlee.cn/downloads/dean.zip">download the compiled version of my robot</a> and racing with me in TORCS:):</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/programming/how-to-compile-torcs-with-visual-studio-2005vc-80/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

