<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>[A4.2] allegro.h no such file or directory.</title>
		<link>http://www.allegro.cc/forums/view/606960</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 10 Apr 2011 22:14:57 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m trying to install Allegro (4.2) on my new computer. I thought I had everything installed properly, but when I tried to compile I got the error: allegro.h: no such file or directory.</p><p>I&#39;m not sure why this is happening. It seems I need help every time I install allegro.</p><p>EDIT:</p><p>By the way, I&#39;m using Code Blocks with Mingw.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Thu, 07 Apr 2011 23:12:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Either put Allegro&#39;s include files in MSVC&#39;s include dir, or add path/to/allegro/include to the extra headers dir in the preprocessor settings.  Or add the path globally in MSVC&#39;s options, under C++ Directories or whatever.  There other ways too, but 3 should do for now <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>EDIT: An even better way might be to copy the contents of allegro/include into your project, and add $(ProjectDir) as an extra include path.  That way you&#39;ll always have the same version of Allegro&#39;s header for that project, independently of your other Allegro projects.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Thu, 07 Apr 2011 23:19:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I should probably mention that I&#39;m using Code Blocks.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Thu, 07 Apr 2011 23:30:10 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://www.allegro.cc/forums/thread/600860">This</a> seems relevant.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (torhu)</author>
		<pubDate>Thu, 07 Apr 2011 23:37:01 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Aha, thanks, that thread helped me to fix it.</p><p>Although, according to AVG, my test program is malware.</p><p>This code:</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#include &lt;allegro.h&gt;</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/allegro_init"><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/install_keyboard"><span class="a">install_keyboard</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"><span class="a">END_OF_MAIN</span></a><span class="k2">(</span><span class="k2">)</span>
</pre></div></div><p>

Makes AVG sit up and take notice, with dire warnings like:</p><ul><li><p>small executable</p></li><li><p>executable changed</p></li><li><p>window not visible</p></li><li><p>is terminated</p></li></ul><p>

The ones that really confuse me, though, are the &quot;executes from filesystem&quot; warning and the &quot;injects code&quot; warning, because I don&#39;t know what they mean. And the injects code has a big, ominous red bar next to it. This program MUST be dangerous! <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" /></p><p>EDIT:</p><p>I do have one more actual question, though. Where does the alleg42.dll need to be, because right now I&#39;m having to stick it into the directory of the .exe
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Fri, 08 Apr 2011 02:00:23 +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/606960/912385#target">Neil Black</a> said:</div><div class="quote"><p>
I do have one more actual question, though. Where does the alleg42.dll need to be, because right now I&#39;m having to stick it into the directory of the .exe
</p></div></div><p>

Thats where it should be. If you want to have all DLL&#39;s in a &quot;dll&quot; folder then you can also use <tt><a href="http://msdn.microsoft.com/en-us/library/ms686203%28v=vs.85%29.aspx">SetDllDirectory()</a></tt>.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Vanneto)</author>
		<pubDate>Sun, 10 Apr 2011 16:03: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/606960/912385#target">Neil Black</a> said:</div><div class="quote"><p> according to AVG, my test program is malware.</p></div></div><p><a href="http://www.allegro.cc/forums/thread/601007">http://www.allegro.cc/forums/thread/601007</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Arthur Kalliokoski)</author>
		<pubDate>Sun, 10 Apr 2011 22:14:57 +0000</pubDate>
	</item>
</rss>
