<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Allegro in Dev-C++</title>
		<link>http://www.allegro.cc/forums/view/590074</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 01 Mar 2007 05:21:09 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m trying Dev C++ (5.0) for the first time. I copied the Allgro Lib and Include stuff into the right folders, and tried to make this program:</p><div class="source-code snippet"><div class="inner"><pre><span class="c">//=================================</span>
<span class="c">//Allegro Testing 101</span>
<span class="c">//Samuel Milito, 14 Feb. 2007</span>
<span class="c">//=================================</span>
<span class="p">#include "allegro.h"</span>

<span class="k1">int</span> main<span class="k2">(</span><span class="k1">void</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/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_SAFE, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
  <a href="http://www.allegro.cc/manual/textprintf_ex" target="_blank"><span class="a">textprintf_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <a href="http://www.allegro.cc/manual/font" target="_blank"><span class="a">font</span></a>, <span class="n">1</span>, <span class="n">469</span>, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">0</span>,<span class="n">0</span>,<span class="n">0</span><span class="k2">)</span>, <a href="http://www.allegro.cc/manual/makecol" target="_blank"><span class="a">makecol</span></a><span class="k2">(</span><span class="n">255</span>,<span class="n">255</span>,<span class="n">255</span><span class="k2">)</span>, <span class="s">"Version 4.5, 3 February 2007"</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">while</span><span class="k2">(</span><span class="k3">!</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_Q<span class="k2">]</span><span class="k2">)</span><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> EXIT_SUCCESS<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>
</pre></div></div><p>

Under Project Options-&gt;Parameters-&gt;Linker I added -lalleg<br />Whenever I run it, it says:<br />[Linker error] undefined reference to &#39;_imp__HERE&#39;<br />Replace HERE with font, screen, key, and allegro_error<br />What is wrong?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Skax459)</author>
		<pubDate>Thu, 15 Feb 2007 04:43:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Use the devpack manager instead to install allegro.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Thu, 15 Feb 2007 04:47:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Install from what? I have the lib, bin, and include folders...what do I do with them? Should I re-download Allegro?</p><p>Ok, I installed the package unit. Now it says: <br />[Build Error] [Labyrinth.exe] Error 1<br />Labyrinth is the name of the program. Anyone else encountered this?<br />(The error, not the game)</p><p>I&#39;m going to try un- and reinstalling Dev-C++
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Skax459)</author>
		<pubDate>Thu, 15 Feb 2007 04:49:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
[Build Error] [Labyrinth.exe] Error 1
</p></div></div><p>Um, thats only the last error, and means nothing to anyone. Always paste the FIRST errors, or all of them.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m going to try un- and reinstalling Dev-C++
</p></div></div><p>Don&#39;t be so hasty, just paste the errors, and we&#39;ll figure it out. Its mot likely that you have an error in YOUR code, causing gcc, and make to fail.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Thu, 15 Feb 2007 09:56:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>write a small code irst and then run it.<br />maybe running the framework of ur games for an example. If there&#39;s a problem with your existing code, then atleast this simple code would work. If not check out all the error areas shown and paste em ova here...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Lucid Nightmare)</author>
		<pubDate>Thu, 15 Feb 2007 10:37:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Don&#39;t be so hasty, just paste the errors, and we&#39;ll figure it out.
</p></div></div><p>

Nah, just switch to Code::Blocks. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" /></p><p>But seriously though, the only reason to ever use Dev-C++ was the DevPaks, and Code::Blocks works with those. It also has many more features than Dev-C++ (and it&#39;s prettier).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Thu, 15 Feb 2007 21:37:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Well, for starters, I think there are 50 some errors that I don&#39;t really feel like typing. So I&#39;ll try uploading a picture. There is clearly something incredibly wrong with draw.inl.</p><p>I&#39;m making a Windows GUI program, with -lalleg in the linker box.</p><p>All the errors are in the picture thats attached</p><p>Here is the code:
</p><div class="source-code snippet"><div class="inner"><pre><span class="c">//================================</span>
<span class="c">//Allegro Test Program</span>
<span class="c">//================================</span>
<span class="p">#include &lt;allegro.h&gt;</span>

<span class="k1">int</span> main<span class="k2">(</span><span class="k1">void</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/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_SAFE, <span class="n">640</span>, <span class="n">480</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
    <a href="http://www.allegro.cc/manual/textout_ex" target="_blank"><span class="a">textout_ex</span></a><span class="k2">(</span><a href="http://www.allegro.cc/manual/screen" target="_blank"><span class="a">screen</span></a>, <a href="http://www.allegro.cc/manual/font" target="_blank"><span class="a">font</span></a>, <span class="s">"This doesn't work!"</span>, <span class="n">10</span>, <span class="n">10</span>, <span class="n">10</span>, <span class="n">0</span><span class="k2">)</span><span class="k2">;</span>
    <span class="k1">while</span><span class="k2">(</span><span class="k3">!</span><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a><span class="k2">[</span>KEY_Q<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>
</pre></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Skax459)</author>
		<pubDate>Fri, 16 Feb 2007 06:21:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
So I&#39;ll try uploading a picture.
</p></div></div><p>

A 2Mb BMP!?!? Have you never heard of GIF?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 16 Feb 2007 06:43:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">LennyLen said:</div><div class="quote"><p>
Have you never heard of GIF?
</p></div></div><p>
Let me correct that for you:
</p><div class="quote_container"><div class="title">LennyLen said:</div><div class="quote"><p>
Have you never heard of PNG?
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Fri, 16 Feb 2007 08:32:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Have you ever heard of copy and paste? or does Dev-CPP not let you save the errors? <img src="http://www.allegro.cc/forums/smileys/shocked.gif" alt=":o" /> That&#39;d be one (more) reason to NEVER EVER use it again.</p><p>edit, Oh thats great, it seems that allegro you have installed is configred for DJGPP? My my...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Fri, 16 Feb 2007 11:15:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Let me correct that for you:
</p></div></div><p>

I&#39;m too lazy to fiddle with the PNG settings to get it to compress as much with GIF for images with few colours. Using default settings, that image came out 50% larger as a PNG than as a GIF.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 16 Feb 2007 11:33:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I&#39;m too lazy to fiddle with the PNG settings
</p></div></div><p>
Just save it as an 8-bit PNG if you want apples-to-apples comparison.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Well, for starters, I think there are 50 some errors that I don&#39;t really feel like typing. So I&#39;ll try uploading a picture. There is clearly something incredibly wrong with draw.inl.
</p></div></div><p>
You are trying to use the DJGPP version. Uninstall Allegro and try again.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 16 Feb 2007 12:46:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Just save it as an 8-bit PNG if you want apples-to-apples comparison.
</p></div></div><p>

I use Paint Shop Pro and GIMP. In the former, you need to go through the properties section to change it to 8bit, or change any of the other settings. GIMP doesn&#39;t even give you this option (though it does have other settings you can alter). MS Paint is even worse, there&#39;s no way to change any settings.</p><p>When both formats were used with 8bit colour, PNG was smaller by 5%. Not worth the extra effort, IMO.</p><p>edit:</p><p>Skax459: If you&#39;re going to use Dev-C++, you might should follow Dustin&#39;s advice and use the only useful feature Dev-C++ has, the ability to download and install libraries for you. This way, it <b>will</b> install the correct version of Allegro for you.</p><p>To do this, go to the Tools menu and select Check for Updates/Packages. Select devpaks.org as the server, and it will generate a list of latest packages. Just find Allegro and it will automatically be downloaded and installed for you.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 16 Feb 2007 12:57:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You can save 8-bit PNG files in GIMP. GIF is like the IE of image formats to me, but mostly because of the stupid patents that Unisys was trying to enforce.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 16 Feb 2007 13:02:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
You can save 8-bit PNG files in GIMP. GIF is like the IE of image formats to me, but mostly because of the stupid patents that Unisys was trying to enforce.
</p></div></div><p>

What version? I&#39;m using 2.2, which I know isn&#39;t the latest version, and it has no option for 8bit PNG.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 16 Feb 2007 13:08:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just switch to an indexed palette and save as PNG. I&#39;m pretty sure it&#39;s supported that for a long time.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Fri, 16 Feb 2007 13:14:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Just switch to an indexed palette and save as PNG. I&#39;m pretty sure it&#39;s supported that for a long time.
</p></div></div><p>

And where does one do that (when I create a new image, I get a choice of either RGB or greyscale, with no options for colour depth)? My help file is corrupted, and I don&#39;t actually use GIMP much (as you can probably tell). Actually, the only thing I really ever use it for is for nice font effects.</p><p>edit: Never mind. I downloaded a new version of the help file, and found out how to do it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Fri, 16 Feb 2007 13:27:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi! I downloaded a package of Allegro from that page: <br /><a href="http://devpaks.org/details.php?devpak=32">http://devpaks.org/details.php?devpak=32</a><br />And i got the same error:<br />[Linker error] undefined reference to `allegro_message&#39; <br />And something about 50 errors &#39;undefined reference to....&#39;<br />PLEASE someone help me, I don&#39;t know what is wrong with that <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Kowalski)</author>
		<pubDate>Tue, 20 Feb 2007 01:08:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Likihood is you didn&#39;t link with liballeg.a .<br />The linker&#39;s wondering where the allegro functions come from.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (William Labbett)</author>
		<pubDate>Tue, 20 Feb 2007 02:19:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just pass -lalleg to the linker.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Tue, 20 Feb 2007 05:04:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thnx it&#39;s workin&#39; now <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Michael Kowalski)</author>
		<pubDate>Wed, 21 Feb 2007 01:21:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I use Paint Shop Pro and GIMP. In the former, you need to go through the properties section to change it to 8bit
</p></div></div><p>

No you don&#39;t. Colors -&gt; Decrease color depth.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Wed, 21 Feb 2007 02:08:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
the stupid patents that Unisys was trying to enforce.
</p></div></div><p>

wasn&#39;t that thrown out of various courts all through the 90&#39;s and then they just gave up ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (zenofeller_)</author>
		<pubDate>Mon, 26 Feb 2007 11:36:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p> responding to the original questions i just want to make it clear that when you download allegro from the package manager you add liballeg.a to the linker, not -lalleg.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Wed, 28 Feb 2007 06:45:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It should work either way. At least it did for me.</p><p>AFAIK, liballeg.a == -lalleg
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Thu, 01 Mar 2007 04:52:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>when i do it only liballeg.a works, i always have to change it if i start a new allegro project although i usually just make a windows aplication
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Thu, 01 Mar 2007 05:21:09 +0000</pubDate>
	</item>
</rss>
