<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Installing Allegro with Microsoft Visual C++ 6.0 and DJGPP</title>
		<link>http://www.allegro.cc/forums/view/586812</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 03 Aug 2006 21:10:35 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi ! </p><p>I&#39;m quite new to Allegro. I have a difficulty installing Allegro in my system.<br />I currently have MSVC++ version 6.0.<br />I&#39;ve read through all instruction but still couldn&#39;t figure out<br />Do I really need a DJGPP? Can I use VC6.0 with Allegro only?</p><p>However, these are what I did</p><p>I downloaded DJGPP for GNU environment as what it said in readme file.<br />It said that I need to install GNU DJGPP first.<br />So I did , following the guideline from DJGPP (below)<br />.......<br />----&gt;<br /> Create a directory for DJGPP, say C:\DJGPP.  (WARNING: do NOT<br />   install DJGPP in a directory C:\DEV, D:\DEV, etc., or in any of their<br />   subdirectories: it will not work!  See the FAQ for more details.)  Do<br />   not use a long directory name or one with spaces or special characters.</p><p>  </p><p>2. Unzip all the zip files from that directory, preserving the<br />   directory structure.  For example:</p><p>	pkunzip -d djdev203<br />  or<br />	unzip32 djdev203</p><p>3. After unzipping all the zip files, set the DJGPP environment<br />   variable to point to the file DJGPP.ENV in the main DJGPP<br />   installation directory and add its BIN subdirectory to your PATH.</p><p>   The exact way how these variables should be set depends on your<br />   operating system:</p><p>   * For Windows 2000 or Windows XP systems:</p><p>     - Right-click &quot;My Computer&quot;, then select &quot;Properties&quot;;<br />     - Select the &quot;Advanced&quot; tab, then click &quot;Environment Variables&quot; button;<br />     ***** - Edit the PATH system variable to add the DJGPP bin subdirectory;<br />       (if you are not an administrator, add the DJGPP bin directory to<br />       the user PATH variable - or create one with only this directory<br />       since it is added to the system path);<br />     **** - Add a new variable DJGPP and set its value to the full path<br />       name of the DJGPP.ENV file as explained below.</p><p>***** This is where I have a difficulty with.</p><p>- How can I edit the Path System Variable?<br />- How can I add a new variable DJGPP and set its value to the full path?</p><p>What I did was click &quot;new&quot; on SYstem Variable<br />and set value of the following<br />Variiable Name: Path<br />Variable Value: c:\djgpp\bin<br />and<br />Variable Name: DJGPP<br />Variable Value: C:\DJGPP\DJGPP.ENV</p><p>Is it a correct way to do?</p><p>Then I go to where Allegro is unzipped.<br />then Type &quot;Make&quot; like what it said in the readme file.<br />It does n&#39;t work. It said &quot;make is not recognized as an internal<br />and external command.....&quot;.<br />=========================================================================<br />THen What should I do next?</p><p>I already unzipped Allegro into c:\allegro<br />and DJGPP into c:\Djgpp.<br />My oS is windows XP with Microsoft Visual C++ 6.0</p><p>Thanks
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ThisisNate)</author>
		<pubDate>Thu, 03 Aug 2006 00:20:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need DJGPP or MinGW to help build Allegro. If you don&#39;t want to build it yourself, get the pre-built package from the <a href="http://www.allegro.cc/files">files</a> page.</p><p>To set your path temporarily, do this:
</p><pre>
set PATH=C:\DJGPP\BIN;%PATH%
cd\allegro
fix msvc6 --msvcpaths
make all
make installall
</pre><p>
You might have to run your vcvars32.bat file first.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Thu, 03 Aug 2006 00:24:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thank you for reply. It really helps a lot for prebuilt version of allegro.<br />However, after I put everything in.<br />and Run VC++6.0 with this code</p><p>#include &lt;allegro.h&gt;</p><p>int main(){<br /> <br />    allegro_init();<br />    install_keyboard();<br />    set_gfx_mode( GFX_AUTODETECT, 640, 480, 0, 0);<br />    <br />    readkey();<br />    <br />    return 0;<br />    <br />}   <br />END_OF_MAIN(); </p><p>This is what I&#39;ve got after I run the code above<br /><s>-------------------Configuration: Cpp1 - Win32 Debug</s>-------------------<br />Linking...<br />Cpp1.obj : error LNK2001: unresolved external symbol __imp__readkey<br />Cpp1.obj : error LNK2001: unresolved external symbol __imp__set_gfx_mode<br />Cpp1.obj : error LNK2001: unresolved external symbol __imp__install_keyboard<br />Cpp1.obj : error LNK2001: unresolved external symbol __imp__install_allegro<br />Cpp1.obj : error LNK2001: unresolved external symbol __imp___WinMain<br />LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main<br />Debug/Cpp1.exe : fatal error LNK1120: 6 unresolved externals<br />Error executing link.exe.</p><p>Cpp1.exe - 7 error(s), 0 warning(s)</p><p>What is going on...???<br />Is there something wrong with it?</p><p>THanks you
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ThisisNate)</author>
		<pubDate>Thu, 03 Aug 2006 09:35:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You need to link against alleg.lib and use a Win32 Application, not console.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Thu, 03 Aug 2006 09:44:33 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It looks like you&#39;re not linking against Allegro. You need to add alleg.lib to the list of libraries to link with.</p><p>EDIT: too slow <img src="http://www.allegro.cc/forums/smileys/sad.gif" alt=":(" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kitty Cat)</author>
		<pubDate>Thu, 03 Aug 2006 09:44:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thank you for reply again.<br />I did put the same code as I mentioned earlier.<br />I did add &quot;allege.lib&quot;<br />and using win32 App project</p><p>Now, it works well</p><p>Thank you very much for all replies<br />appreciated....
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ThisisNate)</author>
		<pubDate>Thu, 03 Aug 2006 21:10:35 +0000</pubDate>
	</item>
</rss>
