<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[GCC编译命令出错 In function my_uncompress]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 31 Dec 2010 16:24:03 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	编译命令 <br/>gcc -g connect_db.c -L/usr/lib/mysql -lmysqlclient -lz <br/><br/>注意： <br/>如果 /tmp/ccTGmMS21.o: In function &#039;main&#039;: <br/>/tmp/ccTGmMS21.o(.text+0x11): undefined reference to &#039;mysql_init&#039; <br/>那么参数增加-L参数 <br/><br/>如果 /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function &#039;my_uncompress&#039;: <br/>my_compress.o(.text+0xaa): undefined reference to `uncompress&#039; <br/>那么增加-lz参数 <br/><br/>如下问题，也是加上-lz:<br/>/usr/local/mysql/lib/mysql//libmysqlclient.a(my_compress.o): In function `my_uncompress&#039;:<br/>my_compress.c:(.text+0x60): undefined reference to `uncompress&#039;<br/>/usr/local/mysql/lib/mysql//libmysqlclient.a(my_compress.o): In function `my_compress_alloc&#039;:<br/>my_compress.c:(.text+0x102): undefined reference to `compress&#039;<br/>/usr/local/mysql/lib/mysql//libmysqlclient.a(my_compress.o): In function `my_compress&#039;:<br/>my_compress.c:(.text+0x1ae): undefined reference to `compress&#039;<br/>/usr/local/mysql/lib/mysql//libmysqlclient.a(my_compress.o): In function `unpackfrm&#039;:<br/>my_compress.c:(.text+0x2bc): undefined reference to `uncompress&#039;<br/>/usr/local/mysql/lib/mysql//libmysqlclient.a(my_compress.o): In function `packfrm&#039;:<br/>my_compress.c:(.text+0x3bb): undefined reference to `compress&#039;<br/>collect2: ld returned 1 exit status<br/><br/>如下：<br/><div class="code">g++ -o out mysql_fetch_rows.cpp str.cpp str.h&nbsp;&nbsp;-I/usr/local/mysql/include/mysql/ -L/usr/local/mysql/lib/mysql/&nbsp;&nbsp;-lmysqlclient -lz</div>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] GCC编译命令出错 In function my_uncompress]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>