<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stijn D&#039;haese &#187; Programming</title>
	<atom:link href="http://blog.stijn-dhaese.be/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stijn-dhaese.be</link>
	<description>This is the personal blog of Stijn D&#039;haese. A little freedom on the net by an analyst, developer and system administrator from Belgium.</description>
	<lastBuildDate>Fri, 23 Dec 2011 18:44:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to install MinGW with Geany</title>
		<link>http://blog.stijn-dhaese.be/2008/03/how-to-install-mingw-with-geany/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-mingw-with-geany</link>
		<comments>http://blog.stijn-dhaese.be/2008/03/how-to-install-mingw-with-geany/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 10:36:20 +0000</pubDate>
		<dc:creator>Stijn</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[geany]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[MinGW]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://www.stijn-dhaese.be/blog/?p=32</guid>
		<description><![CDATA[I just started to learn C++ and finding a good compiler for windows Vista isn&#8217;t as easy as I thought it would be. Even more, after I found one it didn&#8217;t really work on its own. Offcource you can find lots of information how to get it running if you google a little bit, but [...]]]></description>
			<content:encoded><![CDATA[<p class="intro">I just started to learn C++ and finding a good compiler for windows Vista isn&#8217;t as easy as I thought it would be. Even more, after I found one it didn&#8217;t really work on its own. Offcource you can find lots of information how to get it running if you google a little bit, but even then it was hard for me to get it up and running. Because I know that I&#8217;m not the only leek in the world who is learning C++, I written a small tutorial in human language. Here you can read how you install MinGW and get it up and running together with Geany under Windows Vista. I did this under the &#8220;home premium&#8221; edition of Vista, so the change is big this will work under other versions as well. (and hopefully also under VISTA SP1)</p>
<p><span id="more-32"></span></p>
<h4>Part 1. Installing MinGW.</h4>
<p>First we are going to install MinGW, the best way to do this, is using the MiniGW Auto Installer.</p>
<ul>
<li><a href="http://www.mingw.org/">Download it</a> and execute it (I can all hear you thinking: &#8220;duh&#8221;)</li>
<li>Select <strong>download and install</strong> and <strong>click next</strong> <a href="http://www.stijn-dhaese.be/blog/?attachment_id=36">(fig.1)</a></li>
<li>Agree to the license Agreement</li>
<li>Chose the current version</li>
<li>At this step you can chose the components you need, check the g++ compiler like in the screenshot <a href="http://www.stijn-dhaese.be/blog/?attachment_id=36">(fig.2)</a>, for now this is more then enough, if you need more components in the future, you always can run the installer again and add more components.</li>
<li>Use the default destination folder (C:\MinGW)</li>
<li>A few more clicks on <strong>&#8220;next&#8221;</strong> and then <strong>&#8220;install&#8221;</strong>.</li>
</ul>
<p>If all went well it will download all the packages and install them, this was the fun part :-)</p>
<ul>
<li>Now, go to start (the windows icon in the bottom left corner -_- ), right click on <strong>&#8220;Computer&#8221;</strong> and chose <strong>&#8220;properties&#8221;</strong></li>
<li>Under task you click <strong>&#8220;Advance system settings&#8221;</strong>, normally you will get a a window like in the screen&#8217;s <a href="http://www.stijn-dhaese.be/blog/?attachment_id=39">(fig.3)</a></li>
<li>Go to the <strong>&#8220;Advance&#8221;</strong>-tab and click on <strong>&#8220;Environment Variables&#8230;&#8221;</strong></li>
<li>Look in your <strong>&#8220;system variables&#8221;</strong> for <strong>&#8220;Path</strong>&#8220;, select it and hit <strong>&#8220;Edit..&#8221;</strong> <a href="http://www.stijn-dhaese.be/blog/?attachment_id=40">(fig.4)</a></li>
<li>In the <strong>&#8220;Variable Value&#8221;</strong> you add <strong>&#8220;;c:\mingw\;c:\mingw\bin;c:\mingw\libexec\gcc\mingw32\3.4.5\;&#8221;</strong>, be sure that the 3.4.5 is the same as your MinGW version.</li>
<li>Hit <strong>&#8220;OK&#8221;</strong> a few times and close down all windows.</li>
<li>In your explorer, go to <strong>&#8220;C:\MinGW\libexec\gcc\mingw32\3.4.2&#8243;</strong>. Copy all the files in that folder to <strong>&#8220;C:\MinGW\bin&#8221;</strong></li>
</ul>
<p>And that&#8217;s all for the first part, go ahead and open a Command line window and enter <strong>&#8220;g++ &#8211;version&#8221;</strong><br />
<span style="color: red;">Note:</span> be sure to open a NEW Command line window and when you compile, compile, be sure to place the source files under your C-drive, for some reason you can&#8217;t compile from a different partition.</p>
<h4>2. Install Geany.</h4>
<p>Geany isn&#8217;t necessary, but its a good and light weighted IDE that will make programming (and compiling) more a hell job ;-)<br />
The good news is that you can use it on *nix, Mac and Windows, the bad news is that your make a few adjustments under windows to make it &#8220;perfect&#8221;.</p>
<ol>
<li>Download the win32 build for geany from there <a href="http://geany.uvena.de/">website</a> and install it.</li>
<li>After the install, run it an make a new &#8220;c++ source file&#8221;</li>
<li>Go to Build -> Set Includes and Arguments.</li>
<li>Change the compile settings from <strong>g++ -Wall -c &#8220;%f&#8221;</strong> to<br />
<strong>g++ -m32 &#8220;%f&#8221; -o &#8220;%e.exe&#8221;</strong></li>
<li>Change the Build settings from <strong>g++ -Wall &#8220;%f&#8221;</strong> to <strong>g++ -m32 &#8220;%f&#8221;</strong> <a href="http://www.stijn-dhaese.be/blog/?attachment_id=41">(fig.5)</a></li>
<li>And hit OK. That&#8217;s it</li>
</ol>
<p>What does this do? If you use the default settings, geany will compile it to a *.o file and since we can&#8217;t use a *.o file under windows, we need to compile it to a windows program.</p>
<p>Thanks for reading this, I hope it will help some people and that there aren&#8217;t to many spellings errors ;-)<br />
I would like to thank the people of <a href="http://www.mingw.org/">MiniGW</a>, <a href="http://geany.uvena.de/">Geany</a> and <a href="http://aarongiles.com/?p=199">Aaron Giles</a> for all the help.<br />
If you have any question, feel free to post them in the comments or <a href="contact.php">contact me.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.stijn-dhaese.be/2008/03/how-to-install-mingw-with-geany/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

