<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Mingw C++  string is not a type ??</title>
		<link>http://www.allegro.cc/forums/view/594252</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Tue, 04 Dec 2007 03:42:48 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>this goes fine:    string strMystring;</p><p>this goes wrong:   string GetTimeString();</p><p>error &#39;string&#39; does not name a type <img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /></p><p>I&#39;m using dev-C++</p><p>any idea&#39;s or a quick work around.. I want to go on with my game <img src="http://www.allegro.cc/forums/smileys/angry.gif" alt="&gt;:(" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ariesnl)</author>
		<pubDate>Tue, 04 Dec 2007 03:11:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>moar coad!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Tue, 04 Dec 2007 03:16:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p><img src="http://www.allegro.cc/forums/smileys/huh.gif" alt="???" /></p><p>call me stupid but I don&#39;t get it
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ariesnl)</author>
		<pubDate>Tue, 04 Dec 2007 03:18:44 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You aren&#39;t naming the string...</p><p>Use:
</p><div class="source-code snippet"><div class="inner"><pre>string strMystring <span class="k3">=</span> GetTimeString<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>

<span class="c">//or</span>
string strMystring<span class="k2">(</span>GetTimeString<span class="k2">(</span><span class="k2">)</span><span class="k2">)</span><span class="k2">;</span>
</pre></div></div><p>

[EDIT]<br />If you&#39;re trying to define a function prototype, maybe you need to put the namespace in? I&#39;m not sure why you would have to if you&#39;re already using strings fine, but I haven&#39;t used Dev C++ in awhile...</p><p><span class="source-code">std::string GetTimeString<span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (IonBlade)</author>
		<pubDate>Tue, 04 Dec 2007 03:20:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>more code
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Tue, 04 Dec 2007 03:20:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>no ! I want to make a function GetTime string() that returns a string...</p><p>string GetTimeString(); is just the declaration  </p><p>h and cpp file added
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ariesnl)</author>
		<pubDate>Tue, 04 Dec 2007 03:22:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I looked at engine.h, looks like you aren&#39;t including &lt;string&gt;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (IonBlade)</author>
		<pubDate>Tue, 04 Dec 2007 03:26:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>... you never actually include &lt;string&gt;, <i>and</i> you don&#39;t use the namespace. FAIL.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (X-G)</author>
		<pubDate>Tue, 04 Dec 2007 03:27:05 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I include &lt;string&gt; in engine.cpp before  engine.h  but  not using namespace could be the problem..</p><p>[edit]  that does the job !!!</p><p>thnx .. I need coffe I think <img src="http://www.allegro.cc/forums/smileys/rolleyes.gif" alt="::)" /><img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Ariesnl)</author>
		<pubDate>Tue, 04 Dec 2007 03:29:39 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Ariesnl said:</div><div class="quote"><p>
I include &lt;string&gt; in engine.cpp before engine.h...
</p></div></div><p>
I think it would be more correct to include <tt>&lt;string&gt;</tt> in engine.h. <tt><i>**Shifty eyes**</i></tt>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (bamccaig)</author>
		<pubDate>Tue, 04 Dec 2007 03:42:48 +0000</pubDate>
	</item>
</rss>
