<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>DevCpp project files</title>
		<link>http://www.allegro.cc/forums/view/262636</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Wed, 30 Apr 2003 14:12:33 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>My project has become complex enough that it requires many separate source files to be compiled and linked together. I know that I can add source files to the project, but does DevC++ automatically link their object files together when it&#039;s compiled with Gcc? I&#039;ve also had troubles with include files. Several of the source files include the same headers, and when I build them (with the above assumption about linking), the compiler barfs out &quot;multiple declaration&quot; errors. Is their any suggestions around this?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MindCode)</author>
		<pubDate>Sun, 27 Apr 2003 05:03:00 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Dev-C++ will link all objects created from project files.</p><p>Encapsulate the contents of your headers with: </p><div class="source-code snippet"><div class="inner"><pre><span class="p">#ifndef HEADER_ID__</span>
<span class="p">#define HEADER_ID__</span>

<span class="c">// content here</span>

<span class="p">#endif</span>
</pre></div></div><p>To prevent redefinition.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Surt)</author>
		<pubDate>Sun, 27 Apr 2003 05:25:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The thing that&#039;s confusing me is that I have done that. Each header has it&#039;s own definition for preventing that, but it still barfs these errors. I really don&#039;t get it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MindCode)</author>
		<pubDate>Sun, 27 Apr 2003 08:34:35 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are you sure you&#039;ve gotten every header? Are you sure the HEADER_ID__ is being defined?</p><p>Give us the error messages so that we may interperet them for ourselves.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Surt)</author>
		<pubDate>Sun, 27 Apr 2003 09:03:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Oh darnit I&#039;m a moron. I haven&#039;t checked this yet, but I know what happened. What I was doing before was &quot;#include&quot;&#039;ing the .cpp files rather than compile+link them (I know it sounds dumb), and I forgot to delete those include statements so the .cpp files were essentially begin compiled and linked twice.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (MindCode)</author>
		<pubDate>Sun, 27 Apr 2003 09:19:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Other IDEs have one button for compiling and another for making. When compiling, only the active source file gets compile, not linked. When making, all files are compiled and linked. This is a convenient way to check the syntax on one file. (I know, another is to write good code in the first place:P) Dev-C++ has only this compile command that performs a total make of the whole project, which is time consuming.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Johan Halmén)</author>
		<pubDate>Wed, 30 Apr 2003 12:24:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The new versions of Dev-C++ use makefiles and your choice of fast/inaccurate or slow/accurate dependency generation, so only the most recently changed files get recompiled.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Cage)</author>
		<pubDate>Wed, 30 Apr 2003 14:12:33 +0000</pubDate>
	</item>
</rss>
