<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Some unexpected problems</title>
		<link>http://www.allegro.cc/forums/view/596774</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 25 Jun 2008 07:59:57 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I installed allegro with Dev-C++ a while ago, and it worked like a charm.  Now, I&#39;m looking to move to MSVC++, and I copied and pasted my allegro library and folder from my dev-cpp include folder to my VC++ 9.0 include folder.  Using the same settings and also remembering to copy over stdint.h (which i didn&#39;t get with VC++ for some reason), I got it down to these last few errors.  I have not meddled with the allegro source code in any way, but when i use #include &lt;allegro.h&gt; i get:</p><p>c:\program files\microsoft visual studio 9.0\vc\include\allegro/gfx.h(275) : warning C4200: nonstandard extension used : zero-sized array in struct/union<br />        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array<br />c:\program files\microsoft visual studio 9.0\vc\include\allegro/rle.h(34) : warning C4200: nonstandard extension used : zero-sized array in struct/union<br />        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array<br />c:\program files\microsoft visual studio 9.0\vc\include\allegro/font.h(31) : warning C4200: nonstandard extension used : zero-sized array in struct/union<br />        Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array<br />c:\program files\microsoft visual studio 9.0\vc\include\allegro/fix.h(45) : warning C4244: &#39;return&#39; : conversion from &#39;double&#39; to &#39;float&#39;, possible loss of data</p><p>Can anybody tell me what i&#39;m doing wrong?  I don&#39;t want to go through recompiling again <img src="http://www.allegro.cc/forums/smileys/cry.gif" alt=":&#39;(" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (polymath)</author>
		<pubDate>Fri, 20 Jun 2008 05:15:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">polymath said:</div><div class="quote"><p>
Can anybody tell me what i&#39;m doing wrong?
</p></div></div><p>
You&#39;re copying an install from a completely different compiler and expecting it to work.
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I don&#39;t want to go through recompiling again <img src="http://www.allegro.cc/forums/smileys/cry.gif" alt=":&#39;(" />
</p></div></div><p>
You have to.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (gnolam)</author>
		<pubDate>Fri, 20 Jun 2008 05:17:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Speaking of, I don&#39;t have the source anymore (automatic install with dev-cpp), and looking at the folder, its all .h files.  Since .h files do not need to be compiled, why do i need to even compile it.  This is assuming that allegro does not rely on compiler-specific extensions/functions, of course.  Couldn&#39;t i include the .h files and expect them to work?  Is there some way i could change a line in font, gfx, fix, rle.h files to eliminate the warnings?  And if i continue on, will these warnings kill my code or just sit there and not matter?  Please, could you clarify a little?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (polymath)</author>
		<pubDate>Fri, 20 Jun 2008 05:23:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><a href="http://www.allegro.cc/files/">http://www.allegro.cc/files/</a> --&gt; Binary&#39;s
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (nonnus29)</author>
		<pubDate>Fri, 20 Jun 2008 08:03:50 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Some .h files are modified by fix.bat. For example, include/allegro/platform/alplatf.h should define ALLEGRO_MSVC, I don&#39;t know if there is something else.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Milan Mimica)</author>
		<pubDate>Tue, 24 Jun 2008 18:48:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Since .h files do not need to be compiled, why do i need to even compile it.
</p></div></div><p>
No they don&#39;t need to be directly compiled, but what they contain is compiled into every source file that includes them. Following what Miran said, if the headers included change between platforms , that means the source files change between platforms, and that means the library needs to be recompiled.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Please, could you clarify a little?
</p></div></div><p>
You can recompile the source yourself using the source files or download the precompiled binaries on the page nonnus29 linked to.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Edgar Reynaldo)</author>
		<pubDate>Wed, 25 Jun 2008 07:59:57 +0000</pubDate>
	</item>
</rss>
