<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Dev-C++ with Allegro</title>
		<link>http://www.allegro.cc/forums/view/591819</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 09 Jun 2007 22:54:17 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hey, I&#39;m trying to get allegro working in dev-c++. I installed dev-c++, went to tools/check for updates, then installed allegro. this is my program.
</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include &lt;allegro.h&gt;</span>

<span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span> <span class="k2">{</span>
    <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>

    <a href="http://www.allegro.cc/manual/allegro_exit" target="_blank"><span class="a">allegro_exit</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span>
<span class="k2">}</span>
<a href="http://www.allegro.cc/manual/END_OF_MAIN" target="_blank"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

I get the compile error:</p><p>[Linker error] undefined reference to &#39;_install_allegro_version_check&#39;<br />[Linker error] undefined reference to &#39;allegro_exit<br />[Linker error] undefined reference to &#39;_WinMain&#39;<br />Id returned 1 exit status</p><p>From a few of the instructions I&#39;ve read, I preformed all the steps correctly
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aaron Whipple)</author>
		<pubDate>Sat, 09 Jun 2007 22:01:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Did you remember to link to the library?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sat, 09 Jun 2007 22:05:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>you cant &quot;remember&quot; something you didn&#39;t know in the first place <img src="http://www.allegro.cc/forums/smileys/undecided.gif" alt=":-/" /> I always had a package with a bat file to do all of the environment stuff for you. How do I go about linking the library?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aaron Whipple)</author>
		<pubDate>Sat, 09 Jun 2007 22:19:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>In the Project menu, go to Project Options, then select the parameters tab. from there, click the &quot;add library or object&quot; button, then navigate to the Allegro library (most probably liballeg.a).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sat, 09 Jun 2007 22:28:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>gcc myprogram.c -o myprogram.exe -lalleg
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rampage)</author>
		<pubDate>Sat, 09 Jun 2007 22:31:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
gcc myprogram.c -o myprogram.exe -lalleg
</p></div></div><p>

Which kinda defeats the purpose of using an IDE really, doesn&#39;t it. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sat, 09 Jun 2007 22:35:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The Project Menu is Grayed out (unclickable)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aaron Whipple)</author>
		<pubDate>Sat, 09 Jun 2007 22:38:45 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s right, nevertheless. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rampage)</author>
		<pubDate>Sat, 09 Jun 2007 22:39:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The Project Menu is Grayed out (unclickable)
</p></div></div><p>

Well, you do actually have to create a project first.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Sat, 09 Jun 2007 22:39:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m a bit confused about the whole project thing, but it worked... Thank you for your help. I appreciate it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Aaron Whipple)</author>
		<pubDate>Sat, 09 Jun 2007 22:54:17 +0000</pubDate>
	</item>
</rss>
