<?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>Desert Zarzamora &#187; libreria</title>
	<atom:link href="http://zarzamora.com.mx/tags/libreria/feed" rel="self" type="application/rss+xml" />
	<link>http://zarzamora.com.mx</link>
	<description>However, there is no real definition of a desert.</description>
	<lastBuildDate>Mon, 30 Jan 2012 23:22:36 +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>Enlazar una libreria con GCC</title>
		<link>http://zarzamora.com.mx/archivo-historico/622</link>
		<comments>http://zarzamora.com.mx/archivo-historico/622#comments</comments>
		<pubDate>Sun, 09 Nov 2008 22:51:04 +0000</pubDate>
		<dc:creator>Desert Zarzamora</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Trucos]]></category>
		<category><![CDATA[enlazar]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[libreria]]></category>
		<category><![CDATA[programacion]]></category>

		<guid isPermaLink="false">http://zarzamora.com.mx/?p=622</guid>
		<description><![CDATA[El problema: Tienes librerias personales que tú mismo creaste, o bien librerías sin instalar que no estan en /usr/lib sino en otros directorios raros y quieres enlazar con gcc. La solución: Se debe indicar a gcc en donde estan las librerias usando -L&#60;dir&#62;, luego enlazarlas como librerías normales usando -l&#60;name&#62;. Por ejemplo para enlazar la [...]]]></description>
			<content:encoded><![CDATA[<p>El problema: Tienes librerias personales que tú mismo creaste, o bien librerías sin instalar que no estan en /usr/lib sino en otros directorios raros y quieres enlazar con gcc.</p>
<p>La solución: Se debe indicar a gcc en donde estan las librerias usando <strong>-L&lt;dir&gt;</strong>, luego enlazarlas como librerías normales usando <strong>-l&lt;name&gt;</strong>. Por ejemplo para enlazar la librería /home/user/tmp/libtrompete.a:</p>
<pre>gcc -L/home/user/tmp/ -ltrompete main.cpp</pre>
<p>Nota que solo se le indica el nombre <strong>trompete</strong>, porque gcc le agrega <strong>lib+trompete = libtrompete</strong>. GCC también busca automáticamente si es <strong>.o</strong>, <strong>.so</strong> o si es una AR <strong>.a</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://zarzamora.com.mx/archivo-historico/622/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

