<?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>~chuck/blog &#187; compiling</title>
	<atom:link href="http://www.ozymo.com/explosions/tag/compiling/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ozymo.com</link>
	<description>What more could you want?</description>
	<lastBuildDate>Tue, 17 Oct 2023 03:57:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Teensy ELF executables</title>
		<link>http://www.ozymo.com/explosions/321</link>
		<comments>http://www.ozymo.com/explosions/321#comments</comments>
		<pubDate>Wed, 17 Mar 2010 06:13:34 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.ozymo.com/?p=321</guid>
		<description><![CDATA[Holy crap. I wish I was at awesome as systems programming as this guy. /cs]]></description>
			<content:encoded><![CDATA[<p>Holy crap. I wish I was at awesome as systems programming as <a title="Teensy ELF executables" href="http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html" target="_blank">this guy</a>.</p>
<p>/cs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ozymo.com/explosions/321/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>warning: incompatible implicit declaration of built-in function ‘strlen’</title>
		<link>http://www.ozymo.com/explosions/22</link>
		<comments>http://www.ozymo.com/explosions/22#comments</comments>
		<pubDate>Sun, 02 Mar 2008 20:31:30 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.ozymo.com/~chuck/blog/2008/03/02/warning-incompatible-implicit-declaration-of-built-in-function-%e2%80%98strlen%e2%80%99/</guid>
		<description><![CDATA[This is an error presented by the GNU Compiler Collection (which I still like to call the GNU C Compiler) when compiling a piece of code that calls to a function in the &#60;string.h&#62; header file if it cannot find the function. Typically, this is caused by a call to the strlen function when the]]></description>
			<content:encoded><![CDATA[<p>This is an error presented by the <a title="GNU C Compiler, and others" href="http://gcc.gnu.org/" target="_blank">GNU Compiler Collection</a> (which I still like to call the GNU <a title="The K&amp;R Book Homepage" href="http://cm.bell-labs.com/cm/cs/cbook/" target="_blank">C</a> Compiler) when compiling a piece of code that calls to a function in the &lt;string.h&gt; <a title="Wikipedia article on Header Files" href="http://en.wikipedia.org/wiki/Header_file" target="_blank">header file</a> if it cannot find the function.</p>
<p>Typically, this is caused by a call to the strlen function when the &lt;string.h&gt; header has not been included.</p>
<blockquote><p><strong>$ grep &#8216;#include&#8217; whiteout.c</strong><br />
#include &lt;stdio.h&gt;<br />
<strong> $ gcc -o ../whiteout whiteout.c</strong><br />
whiteout.c: In function ‘trim’:<br />
whiteout.c:49: warning: incompatible implicit declaration of built-in function ‘strlen’<br />
whiteout.c: In function ‘add’:<br />
whiteout.c:64: warning: incompatible implicit declaration of built-in function ‘strlen’</p>
<p><strong>$ grep &#8216;#include&#8217; whiteout.c</strong><br />
#include &lt;stdio.h&gt;<br />
#include &lt;string.h&gt;<br />
<strong>$ gcc -o ../whiteout whiteout.c</strong><br />
$</p></blockquote>
<p>As you can see, simply placing the statement &#8216;#include &lt;string.h&gt;&#8217; into your includes section of your code will alleviate the issue.</p>
<p>/cs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ozymo.com/explosions/22/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
