<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Using Allegro 5 with Code::Blocks 10.05</title>
		<link>http://www.allegro.cc/forums/view/608101</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 15 Aug 2011 10:49:15 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi all,</p><p>I&#39;m trying to use Allegro 5 with Code::Blocks. I initially used MSVC 2010 and got a game running but for prompt reasons I want to use Code::Blocks. I followed the wiki setup <a href="http://wiki.allegro.cc/index.php?title=Windows,_Code::Blocks_10.05_and_Allegro_5">tutorial</a> step-by-step until &quot;Now you are ready to code!!!.&quot; (although &quot;and a small set of binaries from the DirectX Direct3D library.&quot; didn&#39;t show up later in the tutorial)</p><p>Anyway, I am having a problem. When I even try to build the <a href="http://wiki.allegro.cc/index.php?title=Allegro_5_Tutorial/Displays#Code">first</a> tutorial example it fails and opens up stdint.h with these errors:</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>33 error: &#39;long long long&#39; is too long for GCC<br />33 error: declaration does not declare anything<br />34 error: duplicate &#39;unsigned&#39;<br />34 error: &#39;long long long&#39; is too long for GCC<br />34 error: declaration does not declare anything</p></div></div><p>

</p><div class="source-code"><div class="toolbar"><span class="button numbers"><b>#</b></span><span class="button select">Select</span><span class="button expand">Expand</span></div><div class="inner"><span class="number"> 33</span><span class="k1">typedef</span> <span class="k1">long</span> <span class="k1">long</span>  <span class="k1">int64_t</span><span class="k2">;</span>
<span class="number"> 34</span><span class="k1">typedef</span> <span class="k1">unsigned</span> <span class="k1">long</span> <span class="k1">long</span>   <span class="k1">uint64_t</span><span class="k2">;</span>
</div></div><p>

Using Win7 x64, Allegro 5.0.3, Code::Blocks 10.05, MinGW 4.5.2</p><p>Did I leave out any other information? My file is called main.cpp <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>Best,</p><p>H
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (herindes)</author>
		<pubDate>Sun, 14 Aug 2011 16:40:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608101/928211#target">herindes</a> said:</div><div class="quote"><p> although &quot;and a small set of binaries from the DirectX Direct3D library.&quot; didn&#39;t show up later in the tutorial</p></div></div><p>Well, that&#39;s because you didn&#39;t click the &quot;installing MinGW&quot; link, but I have been using Allegro without those binaries... So I might modify that... there is really little info about those binaries...</p><p>About the errors I have no idea, wait for the professionals. <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (AMCerasoli)</author>
		<pubDate>Sun, 14 Aug 2011 16:58:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Sounds like maybe you are using the MSVC Allegro headers with MinGW.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Sun, 14 Aug 2011 18:53:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608101/928212#target">AMCerasoli</a> said:</div><div class="quote"><p>Well, that&#39;s because you didn&#39;t click the &quot;installing MinGW&quot; link, but I have been using Allegro without those binaries... So I might modify that... there is really little info about those binaries...</p></div></div><p>

Aha, that&#39;s true! I did go through with the tutorial you mention but I forgot I did not copy the dx9mgw.zip files because the link to that file is broken in the tutorial at the end.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/608101/928214#target">Matthew Leverton</a> said:</div><div class="quote"><p>Sounds like maybe you are using the MSVC Allegro headers with MinGW.</p></div></div><p>

Okay, that fixed it! I redid the setup using the MinGW 4.5.2 files instead and it worked. However, when I redid the C::B setup using the 5.0.4 release I got this error:</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>C:\allegro\lib\liballegro-5.0.4-static-mt.a(wsystem.o):wsystem.c<br />undefined reference to `PathFindOnPathA@8&#39;</p></div></div><p>

But 5.0.3 works so I am satisfied. <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>Thanks!</p><p>H
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (herindes)</author>
		<pubDate>Mon, 15 Aug 2011 10:43:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>When you static link, if you get an undefined reference, just Google the function name (PathFindOnPath) and look up the library it needs. In this case it is &quot;Shlwapi.lib&quot;.</p><p>Or, I suppose it&#39;s libshlwapi.a on MinGW.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Mon, 15 Aug 2011 10:49:15 +0000</pubDate>
	</item>
</rss>
