<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>missing file in code::blocks build</title>
		<link>http://www.allegro.cc/forums/view/607555</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 08 Jun 2011 23:49:09 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>This is probably something simple. I installed and set up Allegro 5, following the wiki guide, on Code::Blocks 10.5 and tried a simple program to test. </p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include &lt;iostream&gt;</span>
<span class="p">#include &lt;stdlib.h&gt;</span>
<span class="p">#include "allegro5/allegro.h"</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/al_init"><span class="a">al_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>
std::cout <span class="k3">&lt;</span><span class="k3">&lt;</span> <span class="s">"Allegro version "</span> <span class="k3">&lt;</span><span class="k3">&lt;</span> <a href="http://www.allegro.cc/manual/al_get_allegro_version"><span class="a">al_get_allegro_version</span></a> <span class="k3">&lt;</span><span class="k3">&lt;</span> std::endl<span class="k2">;</span>
<span class="c">//textout_ex("Press any key...\n");</span>
<span class="c">//getch();</span>
<span class="k1">return</span> <span class="n">0</span><span class="k2">;</span>
<span class="k2">}</span>
</pre></div></div><p>When building, I get the following errors:
</p><div class="quote_container"><div class="title"><a href="http://">errors</a> said:</div><div class="quote"><p>..\..\allegro-5.0.2-1\allegro\include\allegro5\internal\alconfig.h|28|error: allegro5/platform/alplatf.h: No such file or directory|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\internal\alconfig.h|57|error: #error platform not supported|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\platform\astdint.h|70|error: #error I dunno how to get the definitions of fixed-width integer types on your platform. Please report this to your friendly Allegro developer.|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\internal\alconfig.h|318|error: #error endianess not defined|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\fshook.h|26|error: conflicting declaration &#39;typedef unsigned int off_t&#39;|<br />c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\sys\types.h|41|error: &#39;off_t&#39; has a previous declaration as &#39;typedef _off_t off_t&#39;|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\inline\fmaths.inl||In function &#39;int al_fixtoi(al_fixed)&#39;:|<br />..\..\allegro-5.0.2-1\allegro\include\allegro5\inline\fmaths.inl|207|error: &#39;al_fixfloor&#39; was not declared in this scope|<br />C:\Documents and Settings\BobKeane\My Documents\WIP\first\main.cpp||In function &#39;int main()&#39;:|<br />C:\Documents and Settings\BobKeane\My Documents\WIP\first\main.cpp|7|warning: the address of &#39;uint32_t al_get_allegro_version()&#39; will always evaluate as &#39;true&#39;|<br />||=== Build finished: 7 errors, 1 warnings ===|</p></div></div><p>I took a cusory look at the allegro5\platform folder, there is no alplatf.h file, but an alplatfh.cmake file. Did I miss a step in the instructions?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bob Keane)</author>
		<pubDate>Wed, 08 Jun 2011 23:49:09 +0000</pubDate>
	</item>
</rss>
