<?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>可可熊的窝 &#187; gcc，F9</title>
	<atom:link href="http://cocobear.info/blog/tag/gcc%ef%bc%8cf9/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sat, 10 Dec 2011 16:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fedora9中的gcc</title>
		<link>http://cocobear.info/blog/2008/05/22/fedora9-gcc43/</link>
		<comments>http://cocobear.info/blog/2008/05/22/fedora9-gcc43/#comments</comments>
		<pubDate>Thu, 22 May 2008 08:18:31 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Not Language]]></category>
		<category><![CDATA[编程相关]]></category>
		<category><![CDATA[gcc，F9]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=282</guid>
		<description><![CDATA[Fedora9中默认安装的gcc版本是4.3，（Ubuntu8.04还只是4.2.1）由于gcc本身的变化，在Fedora9中源码编译一些软件的时候会出错，比如eva。我原来写的程序在gcc 4.2.1中可以顺利编译，今天在F9中测试的时候就出错了： test.cpp:38: error: ‘memcpy’ was not declared in this scope gcc的官方有针对这种情况的说明： http://gcc.gnu.org/gcc-4.3/porting_to.html gcc 为了加快编译的速度，减少了对头文件的检查，因此得手动包含所有相关的头文件。这样做可以确保程序员在写代码的时候意识到自己需要哪些头文件，而不是交给编译器去处理。不过同时也带来了不少麻烦，许多以前写的代码都没办法在gcc 4.3中编译通过。 我在f8（VM虚拟机中）中使用gcc 4.2.1编译一个动态链接库时完全正常，但在F9（AMD64 Dou）中使用gcc 4.3编译就无法通过了提示： /usr/bin/ld: test.o : relocation R_X86_64_32 against `a local symbol&#8217; can not be used when making a shared object; recompile with -fPIC test.o: could not read symbols: Bad value 不知道这是gcc 4.3的问题，还是双核64系统的问题。只好再装一个低版本的gcc，下载了gcc 4.2.4的源码包，没想到编译时又出错了： /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: 没有那个文件或目录 [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/05/22/fedora9-gcc43/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

