<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>I have problem when I compile my little program</title>
		<link>http://www.allegro.cc/forums/view/615994</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 19 Jan 2016 02:07:19 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This is my little program, it basic but is something <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />.</p><p>#include &lt;stdio.h&gt;<br />#include &lt;allegro5/allegro.h&gt;<br />#include &lt;stdlib.h&gt;</p><p>main()<br />{<br />     <br />     al_init();<br />     extern char allegro_id[];<br />     printf(&quot;%c&quot;,allegro_id);<br />     exit(0);<br />}<br />         </p><p>And  here is my problem that i can&#39;t solve:</p><p>  [Linker error] undefined reference to `allegro_id&#39; <br />  ld returned 1 exit status </p><p>You now wich could be the problem?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MilanesaNapo)</author>
		<pubDate>Mon, 18 Jan 2016 04:00:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m not sure that Allegro 5 <i>has</i> an <span class="source-code"><a href="http://www.allegro.cc/manual/allegro_id"><span class="a">allegro_id</span></a></span>. Searches all reference Allegro 4. A different, incompatible version of the library. There is an <span class="source-code"><a href="http://www.allegro.cc/manual/al_get_allegro_version"><span class="a">al_get_allegro_version</span></a></span> function that returns a packed integer... I assume that would be similar in purpose. What is it that you wanted <span class="source-code"><a href="http://www.allegro.cc/manual/allegro_id"><span class="a">allegro_id</span></a></span> for?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (bamccaig)</author>
		<pubDate>Mon, 18 Jan 2016 04:32:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Because you declared it extern.<br />EDIT: wait, no. Don&#39;t know.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Mon, 18 Jan 2016 04:36:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The problem is that i don&#39;t know what is the allegro_id, if it is a file that is missing or doesn&#39;t exist. I try with an example downloaded  from web and it gave me the same problem.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MilanesaNapo)</author>
		<pubDate>Mon, 18 Jan 2016 05:11:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><span class="source-code"><a href="http://www.allegro.cc/manual/allegro_id"><span class="a">allegro_id</span></a></span> does not exist in Allegro 5. Remove those two lines that reference it and move on. <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (bamccaig)</author>
		<pubDate>Mon, 18 Jan 2016 05:23:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>ok, i am going to try it</p><p>[EDIT 1]</p><p>Okay,i try with another example but the error is the same. What do you recomend me to do?</p><p>Thanks for your help and attention.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MilanesaNapo)</author>
		<pubDate>Tue, 19 Jan 2016 01:01:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Your examples are for Allegro 4. Where are you getting them?</p><p>Allegro 5 has some tutorials here: <a href="https://wiki.allegro.cc/index.php?title=Getting_Started#Tutorials">https://wiki.allegro.cc/index.php?title=Getting_Started#Tutorials</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Tue, 19 Jan 2016 02:07:19 +0000</pubDate>
	</item>
</rss>
