<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Installing Allegro 5 with Code::Blocks and MinGW</title>
		<link>http://www.allegro.cc/forums/view/616896</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 20 May 2017 21:27:06 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s been nearly a decade since I&#39;ve Allegro&#39;d and I&#39;m having some trouble getting things set up again. I have Code::Blocks installed with MinGW. It&#39;s compiling simple test programs without errors and they run fine, but I can&#39;t get Allegro 5 working.</p><p>I followed this <a href="https://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_and_Allegro_5">tutorial on the wiki</a> but when I tried to compile it gave me a long list of errors, largely saying that the files the tutorial told me to link couldn&#39;t be found. I&#39;m not sure what I&#39;m doing wrong or how to get it working right.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Wed, 17 May 2017 11:37:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Neil, that tutorial is extremely out of date. Let me do you a favor.</p><p><a href="http://www.7-zip.org/">Install 7-zip</a>.</p><p><a href="https://sourceforge.net/projects/unofficialmingw/files/MinGW5302v3.tar.7z/download">Download my MinGW 5.3.0.3 distribution here</a></p><p><a href="https://sourceforge.net/projects/unofficialallegro5distribution/files/Allegro522_MinGW5303v2.tar.7z/download">Download my Allegro 5.2.2 distribution here</a></p><p>Navigate to the folder where you saved them. Right click on the 7z files and extract them. Right click on the newly created tar files and extract them.</p><p>Copy the MinGW folder to C:.</p><p>Go into CodeBlocks and make sure it detects your new mingw compiler.</p><p>Add the allegro folder&#39;s include directory to your compiler search path.</p><p>Add the allegro folder&#39;s lib directory to your linker search path.</p><p>Add the monolith to your linker commands.</p><p>Build your project.</p><p>Profit. <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 17 May 2017 21:10:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok, I have a small Allegro 5 program compiling fine, but whenever I try to run it pops up an error message about .dlls missing from my computer. It started with the allegro_monolith-5.2.dll and I copy-pasted that into the program&#39;s directory and tried again, then I got four error messages about four other .dlls missing (libFLAC-8.dll, libfreetype-6.dll, libogg-0.dll, and libphysfs.dll). I copy-pasted those into the directory and got errors about another list of dlls, and at that point I figured I must have done something wrong.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Sat, 20 May 2017 09:35:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>No, you did it right. You really need all those dlls, unless you link statically. That&#39;s what the allegro/bin/dlls folder is for. Copy all of them to your executable&#39;s directory to run it properly.</p><p>Otherwise, static link.</p><p>Look in the allegro folder for a file called a5static libraries or something like that. Read it, and use those linker options to link statically to allegro 5 and its dependencies. You don&#39;t need to link against stuff you don&#39;t use, but you do need to link to stuff allegro uses.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Sat, 20 May 2017 21:27:06 +0000</pubDate>
	</item>
</rss>
