<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Installing Allegro with Dev-C++</title>
		<link>http://www.allegro.cc/forums/view/585914</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 28 Jun 2006 09:09:50 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I have Dev-C++ 4.9.9.2 up and running.  Now I want to compile/install Allegro to work with it.  I have Allegro stored off in C:\Allegro.</p><p>The link I found in this forum giving directions to do that is broken.  Any ideas where I can go next to find out how to get Allegro and Dev-C to work together?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Fred Flagg)</author>
		<pubDate>Wed, 14 Jun 2006 11:03:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If you click on the tools icon, you should see a check for updates option. Selecting that will bring another screen, its been a while since I tried it, but the screen should be intuitive. You may have to change the website it searches. Once you make the connection, select the latest version of Allegro and download it. Then click on tools again, the last option should be the one you want (install devpaks?). You will see the Allegro devpak in the list. Select it and click the install button.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Wed, 14 Jun 2006 20:47:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The link I found in this forum giving directions to do that is broken. Any ideas where I can go next to find out how to get Allegro and Dev-C to work together?
</p></div></div><p>
Allegro\docs\build\mingw32.txt</p><p>It contains all the info you need. I&#39;d advise against devpaks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 14 Jun 2006 21:44:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Come to think of it, the web update feature may install the package automatically. Good luck.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Thu, 15 Jun 2006 02:44:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Select &quot;devpaks.org&quot; from the drop down list of the MENU&gt;Tools&gt;Check for Updates/Pacages.</p><p>Then click Check For Updates.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Fox)</author>
		<pubDate>Thu, 15 Jun 2006 08:12:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Check this out--- <a href="http://www.shamis.0nyx.com/install.html">http://www.shamis.0nyx.com/install.html</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Lucid Nightmare)</author>
		<pubDate>Thu, 15 Jun 2006 12:51:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>After wasting an entire day, I found the solution. Quite simple, really.:-[
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Thu, 15 Jun 2006 22:57:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">gnolam said:</div><div class="quote"><p>

Allegro\docs\build\mingw32.txt</p><p>It contains all the info you need. I&#39;d advise against devpaks.
</p></div></div><p>
I&#39;d advise against compiling from source.  The dev-cpp package updater contains everything you&#39;d need to get allegro working.</p><div class="quote_container"><div class="title">Lucid Nightmare said:</div><div class="quote"><p>

Check this out--- <a href="http://www.shamis.0nyx.com/install.html">http://www.shamis.0nyx.com/install.html</a>
</p></div></div><p>
I&#39;d also like to reccomend you don&#39;t check out that link.  Use the dev-cpp package updater.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Fri, 16 Jun 2006 02:05:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;d advise to first install Allegro via the dev-cpp package updater. <br />Later when you find that you need a bit more speed you might want to consider building Allegro yourself and disabling ASM routines. That can give &gt;50% speed increase in many functions.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Fri, 16 Jun 2006 14:50:14 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Do you even get the examples with devpaks?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Fri, 16 Jun 2006 17:43:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Do you even get the examples with devpaks?
</p></div></div><p>
Yes.</p><p>...but it&#39;s a separate devpak. I think...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Fri, 16 Jun 2006 17:45:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
...but it&#39;s a separate devpak. I think...
</p></div></div><p>
Yes, it&#39;s the Allegro Supplement Package
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Dark Logan)</author>
		<pubDate>Sat, 17 Jun 2006 00:46:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Cause as we all know, Supplement == Examples ~~~`````1~~~~!!!!!!!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Sat, 17 Jun 2006 05:45:25 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve used the package updater and it seem that the library isn&#39;t still working properly.<br />I was trying to make some simple things using Allegro and after typing this:<br />#include &lt;allegro.h&gt;<br />allegro_init();<br />And sending this to the compiler it returned this answer:<br />expected constructor, destructor, or type conversion before &#39;(&#39; token.<br />What is wrong?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Vinny_CGR)</author>
		<pubDate>Sat, 24 Jun 2006 05:24:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>int main() ?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Sat, 24 Jun 2006 14:13:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Has someone even asked Fredd whether is he still stuck up with the installation problem or not... He just disappeared after starting the thread...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Lucid Nightmare)</author>
		<pubDate>Sat, 24 Jun 2006 17:39:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi all,</p><p>I too just started working with Dev-C++, and was in the process of making Allegro work with the IDE with little to no avail. While the library itself works -- my test &quot;allegro_message()&quot; call works, whenever I try to use any of the system variables like &quot;extern int os_type,&quot; it keeps giving me the following compile error:</p><p>Compiler: Default compiler<br />Building Makefile: &quot;C:\Dev-Cpp\Makefile.win&quot;<br />Executing  make...<br />make.exe -f &quot;C:\Dev-Cpp\Makefile.win&quot; all<br />gcc.exe -c GetInfomain.c -o GetInfomain.o -I&quot;C:/Dev-Cpp/include&quot;   <br />gcc.exe GetInfomain.o  -o &quot;GetInfo.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -lalleg  <br />Execution terminated<br />Compilation successful</p><p>Here is the code in my script:</p><p>#include &lt;allegro.h&gt;<br />int main()<br />{<br />    allegro_init();<br />    extern int os_type;<br />    printf(&quot;OS Version = %s\n&quot;, os_type);<br />    allegro_exit();<br />}<br />END_OF_MAIN();</p><p>At this point, I am at a loss for words. If it helps, I&#39;m working on Windows XP Professional. I&#39;m totally flustered and you guys are pretty much my last hope. <img src="http://www.allegro.cc/forums/smileys/embarassed.gif" alt=":-[" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Tue, 27 Jun 2006 18:20:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Compiler: Default compiler<br />Building Makefile: &quot;C:\Dev-Cpp\Makefile.win&quot;<br />Executing make...<br />make.exe -f &quot;C:\Dev-Cpp\Makefile.win&quot; all<br />gcc.exe -c GetInfomain.c -o GetInfomain.o -I&quot;C:/Dev-Cpp/include&quot;<br />gcc.exe GetInfomain.o -o &quot;GetInfo.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -lalleg<br />Execution terminated<br />Compilation successful
</p></div></div><p>

<img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /><br />Where is the error? It says &quot;Compilation successful&quot;!</p><p>edit:<br />BTW, you program does nothing. It initializes, prints a message and exits. It takes few nanoseconds to do that on modern computers.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Tue, 27 Jun 2006 18:24:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Compilation successful
</p></div></div><p>
What&#39;s the error?</p><p>And you don&#39;t need to declare os_type, since allegro.h already does. And you may want to turn on warnings (you&#39;re trying to use %s (a string) with an int; that will more than likely crash, and definitely not do what you expect).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Tue, 27 Jun 2006 18:25:26 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>D&#39;oh... Stupid text didn&#39;t copy. Didn&#39;t realize... Here&#39;s the correct compile log text:</p><p>Compiler: Default compiler<br />Building Makefile: &quot;C:\Dev-Cpp\Makefile.win&quot;<br />Executing  make...<br />make.exe -f &quot;C:\Dev-Cpp\Makefile.win&quot; all<br />gcc.exe -c GetInfomain.c -o GetInfomain.o -I&quot;C:/Dev-Cpp/include&quot;   <br />gcc.exe GetInfomain.o  -o &quot;GetInfo.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -lalleg  <br />Info: resolving _os_type by linking to __imp__os_type (auto-import)<br />fu000001.o(.idata$3+0xc): undefined reference to `lib_mingw32_liballeg_a_iname&#39;<br />nmth000000.o(.idata$4+0x0): undefined reference to `_nm__os_type&#39;<br />collect2: ld returned 1 exit status<br />make.exe: *** [GetInfo.exe] Error 1<br />Execution terminated</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
And you don&#39;t need to declare os_type, since allegro.h already does. And you may want to turn on warnings (you&#39;re trying to use %s (a string) with an int; that will more than likely crash, and definitely not do what you expect).
</p></div></div><p>
The only reason I was declaring os_type was because it said to in the book I&#39;m reading for using Allegro. However, if this is true, what would be the proper printf() call to output the value?</p><p>(As if you can&#39;t tell, I&#39;m still a C newbie)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Tue, 27 Jun 2006 18:26:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
However, if this is true, what would be the proper printf() call to output the value?
</p></div></div><p>

<span class="source-code"><a href="http://www.delorie.com/djgpp/doc/libc/libc_624.html" target="_blank">printf</a><span class="k2">(</span><span class="s">"OS Version = %d\n"</span>, <a href="http://www.allegro.cc/manual/os_type" target="_blank"><span class="a">os_type</span></a><span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 27 Jun 2006 20:28:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
printf(&quot;OS Version = %d\n&quot;, os_type);
</p></div></div><p>
Thanks!</p><p>I guess maybe I&#39;ll have to look a bit closer at what the book I&#39;m reading says, because I was totally lost as to why I kept getting the compile errors (since the book told me to define extern int os_type).</p><p>Being a newbie sucks. <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Tue, 27 Jun 2006 21:20:34 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
since the book told me to define extern int os_type
</p></div></div><p>
What&#39;s the title of the book?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Tue, 27 Jun 2006 22:47:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
What&#39;s the title of the book?
</p></div></div><p>Wanna bet it&#39;s called &quot;Game programming all in one&quot;?<br /><img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (HoHo)</author>
		<pubDate>Tue, 27 Jun 2006 23:10:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It was a rhetorical question.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (miran)</author>
		<pubDate>Tue, 27 Jun 2006 23:43:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Wanna bet it&#39;s called &quot;Game programming all in one&quot;?
</p></div></div><p>
Might I ask what&#39;s so terrible about the book, or using a book like that to familiarize ones&#39; self with game coding?</p><p>I prefer self-study to schooling -- that&#39;s where I got my start doing web development close to 9 years ago -- and I&#39;ve become very successful. Learning to code games is something that I&#39;ve wanted to do since I was a kid. Jonathan Harbour&#39;s book is the second book I&#39;ve started reading. The first one I read through was Beginning C++ Game Programming by Michael Dawson.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Wed, 28 Jun 2006 02:11:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Might I ask what&#39;s so terrible about the book, or using a book like that to familiarize ones&#39; self with game coding?
</p></div></div><p>
It&#39;s that <i>specific</i> book that&#39;s horrible, not books in general. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>In short: it contains a whole bunch of dodgy or just plain erroneous code, horrible programming practices, standards-breaking galore - and the author refuses to correct his mistakes.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Wed, 28 Jun 2006 02:18:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
In short: it contains a whole bunch of dodgy or just plain erroneous code, horrible programming practices, standards-breaking galore - and the author refuses to correct his mistakes.
</p></div></div><p>
I wouldn&#39;t know erroneous code (from a C standpoint) or standards-breaking (same story) if I saw them; I have my own programming practices already.</p><p>What sort of stuff are you talking about? Any examples?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Wed, 28 Jun 2006 05:09:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Any examples?
</p></div></div><p>Telling you to decare os_type when allegro.h already does?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Wed, 28 Jun 2006 05:16:57 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Telling you to decare os_type when allegro.h already does?
</p></div></div><p>
Actually, I reread that part of the book earlier today, and it&#39;s just worded funny and I read it wrong. It just names that command as something that&#39;s predefined. So it was my mistake. <img src="http://www.allegro.cc/forums/smileys/lipsrsealed.gif" alt=":-X" /></p><p>I&#39;m still curious what other sorts of things raise red flags to you folks. I mean you seem like a pretty enthusiastic, close-knit community of coders. There&#39;s got to be some merit to the hate on that specific book. I&#39;d just like some perspective by example.</p><p>Also, are there any books that you guys would recommend? I know there are tutorials on the site here, but I&#39;m more the type that needs a tangible book to sit down and read; have trouble concentrating when reading off my notebook&#39;s LCD.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Wed, 28 Jun 2006 05:42:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
There&#39;s got to be some merit to the hate on that specific book.
</p></div></div><p>
In any beginner&#39;s book&#39;s defense... It will attract people who don&#39;t really know what they are doing. They will come to this site, ask a stupid question, and mention that they are using the book. Thus a bad association gets formed.</p><p>I&#39;ve never seen this book, so I cannot comment on its entirety. But the author isn&#39;t very friendly to criticism and has engaged in fights on many occassions (both here and on his own site) with those who dare to not adorn him with praise. So couple that with the fact that the book does suffer from (at least) some bad practices (eg, conio.h) and a dislike is formed.</p><p>One example of his infamous advice is:
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Don&#39;t use the new version <i>(4.2)</i> of Allegro. It&#39;s a hokey mess. They&#39;ve ruined Allegro and it has no future. Keep using the version described in the book, or go with one revision up, but not any further, because a bunch of &quot;volunteers&quot; have made a mess of it. That so-called &quot;5.0&quot; was scrapped entirely. So, don&#39;t trust new versions. Why anyway, when the last &quot;good&quot; revision in the book works fine?
</p></div></div><p>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Wed, 28 Jun 2006 06:21:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I will say that I&#39;ve encountered several instances where he uses depreciated functions, which I quickly just looked up here in the Allegro manual and found the updated function.</p><p>I&#39;ve noticed that Mr. Harbour and I do have very different coding styles, and I&#39;ve seen a few instances where he did things that the initial book I read -- and personal experience -- have taught me never to do. But I&#39;m aware of those bad habits, so with any luck, I&#39;ll be able to inject a bit of my logic into my studies to keep from picking them up.</p><p>And yeah, I do totally agree that &quot;All-in-One&quot; or those &quot;Teach Yourself <s>insert language here</s> in 24 hours&quot; books are generally trash, but I actually have no complaints about his book so far. As long as I get what I need out of it, I&#39;ll be happy. I plan to continue my self-education beyond his book, but everything I read about it (comments on Amazon, etc.), it seemed like a good book to snag.</p><p>Keeping in mind that as I said before, I read Beginning C++ Game Programming (by Michael Dawson) first. That coupled with my existing programming experience, I feel like I have some good building blocks. Where I go from here? Well, they sky&#39;s the limit, but I hope this community is as helpful with everything else as they&#39;ve been on this particular topic. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>As an aside... You mentioned bad practices like conio. I did notice that while my initial read (Mr. Dawson&#39;s book) used iostream, Mr. Harbour&#39;s does use conio and stdlib. It seems to be very C-centric, where the other was strictly C++. I do kind of wish they both took the C++ approach, but I guess in all reality, the difference is just code structure.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (David_at_wedu)</author>
		<pubDate>Wed, 28 Jun 2006 07:28:38 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>conio isn&#39;t even C centric, its DOS centric.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Wed, 28 Jun 2006 09:09:50 +0000</pubDate>
	</item>
</rss>
