<?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>Kanru&#039;s 探險日誌 &#187; gcc</title>
	<atom:link href="http://blog.kanru.info/archives/tag/gcc/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.kanru.info</link>
	<description>當發現美好的事物時，所要做的第一件事，就是把它分享給所有人</description>
	<lastBuildDate>Sun, 23 May 2010 09:51:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>C Runtime Error R6002</title>
		<link>http://blog.kanru.info/archives/289</link>
		<comments>http://blog.kanru.info/archives/289#comments</comments>
		<pubDate>Fri, 22 Feb 2008 14:32:45 +0000</pubDate>
		<dc:creator>kanru</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[vc]]></category>

		<guid isPermaLink="false">http://blog.kanru.info/archives/289</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>某學長在寫一隻簡單的分析程式時出現的問題：fscanf(&#8220;%f&#8221;, &amp;value); 總是會出現 runtime error！</p>

<p>google 之後才知道，光只有使用 fscanf 是不會把浮點運算必須的函式庫 link 進去的，參考 <a href="http://msdn2.microsoft.com/zh-tw/library/k1x26e0x.aspx">MSDN</a>。</p>

<p>不知道 gcc 怎麼處理？回宿舍之後試試 :p</p>

<p>Update:</p>

<p>答案是不會錯&#8230;，下次試試 VC8</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kanru.info/archives/289/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>gcc-4.3 &amp; linux kernel</title>
		<link>http://blog.kanru.info/archives/281</link>
		<comments>http://blog.kanru.info/archives/281#comments</comments>
		<pubDate>Sun, 13 Jan 2008 11:01:25 +0000</pubDate>
		<dc:creator>kanru</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[kernel]]></category>

		<guid isPermaLink="false">http://blog.kanru.info/archives/281</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>答案就是：gcc-4.3 還不能拿來 compile kernel..
因為會用到沒有定義的 libgcc function.</p>

<p>錯誤如下：</p>

<pre><code>  CC      arch/i386/lib/msr-on-cpu.o
  LD      arch/i386/lib/built-in.o
  CC      arch/i386/lib/bitops.o
  AS      arch/i386/lib/checksum.o
  CC      arch/i386/lib/delay.o
  AS      arch/i386/lib/getuser.o
  CC      arch/i386/lib/memcpy.o
  CC      arch/i386/lib/mmx.o
  AS      arch/i386/lib/putuser.o
  AS      arch/i386/lib/semaphore.o
  CC      arch/i386/lib/string.o
  CC      arch/i386/lib/strstr.o
  CC      arch/i386/lib/usercopy.o
  AR      arch/i386/lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
kernel/built-in.o: In function `getnstimeofday':
(.text+0x1d927): undefined reference to `__umoddi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x1d9e9): undefined reference to `__udivdi3'
kernel/built-in.o: In function `do_gettimeofday':
(.text+0x1da0c): undefined reference to `__umoddi3'
kernel/built-in.o: In function `timekeeping_resume':
timekeeping.c:(.text+0x1db18): undefined reference to `__udivdi3'
timekeeping.c:(.text+0x1db3b): undefined reference to `__umoddi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x1e214): undefined reference to `__udivdi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x1e237): undefined reference to `__umoddi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x1e2d3): undefined reference to `__udivdi3'
kernel/built-in.o: In function `update_wall_time':
(.text+0x1e2fd): undefined reference to `__umoddi3'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/linux-source-2.6.23'
make: *** [debian/stamp-build-kernel] Error 2
</code></pre>

<p>參考：</p>

<ul>
<li><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459767">Debian BTS</a></li>
<li><a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32044#c28">GCC Bugzilla</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.kanru.info/archives/281/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
