<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Mappy</title>
		<link>http://www.allegro.cc/forums/view/588643</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 21 Nov 2006 02:32:09 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>hey,</p><p>im created a map using the program called Mappy which apparently works with allegro and am just trying to load my map at this point, according to the help file i need to do this:</p><p>++++++++++++++++++++++++++++++++++++++++++++</p><p>C++ notes: MappyAL will work fine with C++, but the file &#39;mappyal.c&#39;<br />must be compiled as &#39;C&#39;. With MSVC there is no problem as it uses<br />the filename extension (.c/.cpp) to determine how to compile, but<br />IDE&#39;s like DevC++ and VIDE don&#39;t do this with C++ projects, so <br />instead of adding mappyal.c to your list of sourcefiles (like with <br />MSVC) be sure you have mappyal.o by running &#39;buildal.bat&#39;, or <br />manually compiling with:</p><p>gcc mappyal.c -O2 -Wall -c -o mappyal.o</p><p>then adding mappyal.o BEFORE -lalleg in the linking options, with<br />DevC++ select Project:Project options (Alt+P) and click &#39;Load object<br />files&#39; and add mappyal.o, now move the -lalleg text so it is after<br />the object file, it should look something like:<br />C:\mapalr11\mappyal.o -lalleg<br />do not add the file mappyal.c to your sourcefile list</p><p>++++++++++++++++++++++++++++++++++++++++++++</p><p>could anyone break this down for me because i still dont really understand it..  running &quot;buildal.bat&quot; doesnt do anything expect open up a screen then shut down about half a second later
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (allegro_newbie)</author>
		<pubDate>Tue, 21 Nov 2006 00:02:23 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
running &quot;buildal.bat&quot; doesnt do anything expect open up a screen then shut down about half a second later
</p></div></div><p>

I haven&#39;t use mappy before, but no doubt the batch file is just calling gcc to create the object file for you.  Just do what it says about adding mappyal.o to your project when linking.</p><p>If you want to see what <tt>buildal.bat</tt> is dong, run it from a command promt instead of double-clicking it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 21 Nov 2006 00:46:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>it wont compile if i add mappyal.o in the linker thingy, i dont even have that file to begin with.. i tried to create it by putting &quot;gcc mappyal.c -O2 -Wall -c -o mappyal.o&quot; in a text file and saving it as .o but it doesnt seem to do anything.. /bawl
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (allegro_newbie)</author>
		<pubDate>Tue, 21 Nov 2006 00:59:31 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
i tried to create it by putting &quot;gcc mappyal.c -O2 -Wall -c -o mappyal.o&quot; in a text file and saving it as .o but it doesnt seem to do anything.
</p></div></div><p>

That&#39;s not what an object (.o) file is, that&#39;s why.</p><p>You need to run that line (<tt>gcc mappyal.c -O2 -Wall -c -o mappyal.o</tt>) from the command-line. It creates the object file from <tt>mappyal.c</tt> for you to link with your projects.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 21 Nov 2006 01:37:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>i guess thats what im not understanding <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /> what is the command promt/command line? and how do i go about doing that?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (allegro_newbie)</author>
		<pubDate>Tue, 21 Nov 2006 01:59:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
what is the command promt/command line?
</p></div></div><p>

Rough answer: It&#39;s a text-based console window, where you type in commands directly.</p><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
and how do i go about doing that?
</p></div></div><p>

If you&#39;re running Windows XP, you can access the command prompt by hitting Windows-R and then typing <tt>cmd</tt> in the message box that opens.</p><p>Then you need to navigate to the folder you have the mappy files in.  to change directories, you use the <tt>cd</tt> command. So if you have them in say &quot;c:\programming\mappy&quot;, then you want to type in the following:</p><pre>&gt; cd c:\programming\mappy
c:\programming\mappy&gt; gcc mappyal.c -O2 -Wall -c -o mappyal.o</pre><p>

You can replace the last line with:<br /> <br /> <br /><tt>c:\programming\mappy&gt; buildal.bat</tt></p><p>If your mappy directory is on a different drive (eg. D:\) then:</p><pre>&gt; d:\
d:\&gt; cd programming\mappy
d:\programming\mappy&gt; gcc mappyal.c -O2 -Wall -c -o mappyal.o</pre><p>

Since running <tt>buildal.bat</tt> didnt produce the object file the first time, running it again is probably going to give you an error (as will calling gcc directly no doubt). But at least now you&#39;ll be able to see the error, since it won&#39;t be displayed in a window that disappear sa split second later.</p><p>For versions of Windows other than XP, I&#39;m not 100% sure how you bring up the comand promt (I think win9x uses command.exe instead of cmd.exe, and I have no idea about NT/win2k). Once you have a command prompt up and running though, the steps are the same.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 21 Nov 2006 02:12:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>thanks a bunch! ill try it out <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" /></p><p>(edit)</p><p>ugh, it claims it cant find this gcc file even though both files are in the same folder and i even opened up the buildal thingy in notepad and gave it the correct path for the gcc file
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (allegro_newbie)</author>
		<pubDate>Tue, 21 Nov 2006 02:32:09 +0000</pubDate>
	</item>
</rss>
