<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tommy's Blog &#187; Porting</title>
	<atom:link href="http://tommy.net.cn/tag/porting/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommy.net.cn</link>
	<description>Tommy 的自留地</description>
	<lastBuildDate>Mon, 27 Dec 2010 08:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>将 YoMax 移植到 Linux 平台</title>
		<link>http://tommy.net.cn/2008/08/20/porting-yomax-to-linux-platform/</link>
		<comments>http://tommy.net.cn/2008/08/20/porting-yomax-to-linux-platform/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 08:55:11 +0000</pubDate>
		<dc:creator>Tommy</dc:creator>
				<category><![CDATA[程序开发]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[DJMax]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Porting]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[YoMax]]></category>

		<guid isPermaLink="false">http://tommy.net.cn/?p=36</guid>
		<description><![CDATA[今天把 YoMax 移植到 Linux 平台了，还算顺利，一切都进行的不错。感觉很好，很开心。在 Linux 下面跑的速度很快，效果很好。 其中有几个地方修改了一下： 1）_strnicmp，在 Linux 的标准 C 库里面没有这个函数，用 strncasecmp 替换就可以了 2）_mkdir，同样，Linux 下的 C 库也没有这个函数，需要使用 mkdir。需要用到头文件 &#60;sys/stat.h&#62;，而且还要设置权限，跟 Windows 平台下不大一样。详细的使用说明，可以参考 GNU C Library 手册中创建目录部分的内容。 3）还有就是简单的类型定义之类的细节不同了，以及 main 入口函数的声明不大一样 具体的参数和环境： Windows 平台 Windows XP with Service Pack 3 Visual Studio 2005 with Service Pack 1 Linux 平台 Ubuntu 8.04.1 (Hardy Heron) with 2.6.24-19-generic g++ [...]]]></description>
			<content:encoded><![CDATA[<p>今天把 YoMax 移植到 Linux 平台了，还算顺利，一切都进行的不错。感觉很好，很开心。在 Linux 下面跑的速度很快，效果很好。</p>
<p>其中有几个地方修改了一下：</p>
<p>1）_strnicmp，在 Linux 的标准 C 库里面没有这个函数，用 strncasecmp 替换就可以了</p>
<p>2）_mkdir，同样，Linux 下的 C 库也没有这个函数，需要使用 mkdir。需要用到头文件 &lt;sys/stat.h&gt;，而且还要设置权限，跟 Windows 平台下不大一样。详细的使用说明，可以参考 <a title="The GNU C Library" href="http://www.gnu.org/software/libc/manual/" target="_blank">GNU C Library 手册</a>中<a title="Creating Directories" href="http://www.gnu.org/software/libc/manual/html_node/Creating-Directories.html" target="_blank">创建目录</a>部分的内容。</p>
<p>3）还有就是简单的类型定义之类的细节不同了，以及 main 入口函数的声明不大一样</p>
<p>具体的参数和环境：</p>
<ul>
<li>Windows 平台</li>
</ul>
<ol>
<li>
<ul>
<li>Windows XP with Service Pack 3</li>
<li>Visual Studio 2005 with Service Pack 1</li>
</ul>
</li>
</ol>
<ul>
<li>Linux 平台</li>
</ul>
<ol>
<li>
<ul>
<li>Ubuntu 8.04.1 (Hardy Heron) with 2.6.24-19-generic</li>
<li>g++ v4.2.3 (Ubuntu 4.2.3-2ubuntu7)</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://tommy.net.cn/2008/08/20/porting-yomax-to-linux-platform/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

