<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Problems installing Allegro with DJGPP</title>
		<link>http://www.allegro.cc/forums/view/192904</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 09 Jul 2002 11:45:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Some months ago I installed succesfully Allegro on my old desktop computer. Now I am trying to install it on my Toshiba laptop. I use Windows 98, but I want to use Allegro with DJGPP. I have succesfully installed DJGPP and set correctly the environment variables, but when I try to compile allegro, the following error message appears:</p><p>====================<br />Compiling Allegro for djgpp, optimised. Please wait...<br />gcc -DALLEGRO_SRC -Wall -Wno-unused -mcpu=pentium -O2 -funroll-loops <s>ffast</s><br />math<br /> -fomit-frame-pointer -I. -I./include -o obj/djgpp/alleg/allegro.o -c<br />src/allegr<br />o.c<br />In file included from include/allegro/base.h:26,<br />                 from include/allegro.h:27,<br />                 from src/allegro.c:23:<br />c:/djgpp/lib/gcc-lib/djgpp/3.1/include/stdarg.h:110: conflicting types for<br />`va_l<br />ist&#039;<br />c:/djgpp/include/stdio.h:35: previous declaration of `va_list&#039;<br />make.exe: *** [obj/djgpp/alleg/allegro.o] Error 1<br />====================</p><p>Does anyone know how can I solve this problem?</p><p>Thanks!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Antoni Burguera)</author>
		<pubDate>Wed, 26 Jun 2002 22:17:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>[url <a href="http://www.allegro.cc/forums/view_thread.php?_id=186502">http://www.allegro.cc/forums/view_thread.php?_id=186502</a>]
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rash)</author>
		<pubDate>Wed, 26 Jun 2002 22:55:47 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Rash, could you possibly create a simple HTML page that explains the problem and shows the fix in a step-by-step page. If you e-mail that to me, I could place it on Allegro.cc for easy reference. It&#039;s bound to keep coming up again &amp; again.</p><p>I&#039;d do it myself, but I don&#039;t have DJGPP or Windows 98.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Wed, 26 Jun 2002 23:28:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Ok, I&#039;m going to try to make this sound as simple as possible:</p><p>Go inside the main directory where you have installed <b>DJGPP</b>.<br />Then go inside the subdirectory named <i>include</i>.<br />Finally, go inside the subdirectory named <i>sys</i>.<br />Edit the file there named <i>djtypes.h</i>.<br />Find the following line (let&#039;s call this line <b>15</b>, after its current position):
</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#define __DJ_va_list  typedef void *va_list;</span>
</pre></div></div><p>
Add the following <b>before</b> line <b>15</b>:
</p><div class="source-code snippet"><div class="inner"><pre>
<span class="p">#if __GNUC__&gt;=3</span>
<span class="p">#define __DJ_va_list    typedef __builtin_va_list va_list;</span>
<span class="p">#else</span>
</pre></div></div><p>
Add the following <b>after</b> line <b>15</b>:
</p><div class="source-code snippet"><div class="inner"><pre><span class="p">#endif</span>
</pre></div></div><p>
Save the file. <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" /></p><p>If anyone manages to <b>not</b> understand this, then you have my sympathy.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rash)</author>
		<pubDate>Thu, 27 Jun 2002 00:34:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>What version(s) of DJGPP/gcc does this affect? Is there an official upgrade available yet that fixes this issue?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Thu, 27 Jun 2002 01:22:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The patch is necessary for GCC 3.1, but from the looks of the macro it seems to affect all 3.x versions, so Your Mileage May Vary(tm).<br />As far as DJGPP itself is concerned, that would be version 2.03. Hopefully, 2.04 will make this thing a non-issue.
</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Is there an official upgrade available yet that fixes this issue?
</p></div></div><p>
You&#039;re looking at it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Rash)</author>
		<pubDate>Thu, 27 Jun 2002 02:55:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>My DJGPP, shipped with gcc 3.0.3, isn&#039;t affected.</p><p>Nice sig Rash <img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Bruce Perry)</author>
		<pubDate>Tue, 09 Jul 2002 11:45:23 +0000</pubDate>
	</item>
</rss>
