<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MingW VS MSVC 2008 Compiler]]></title><description><![CDATA[<p>Hey</p>
<p>ich arbeite grade an einem Projekt und hoffe hier Hilfe zu finden.</p>
<p>Die Sache ist so: Ich arbeite eigentlich sehr gerne mit der VC++ IDE. Wegen der Projektverwaltung und weil sie leichter zu bedienen ist...</p>
<p>Aber wenn die Projekte fertig sind, würde ich sie gerne nicht mit dem MSVC 2008 Compiler kompilieren. Sondern mit dem MingWCompiler.</p>
<p>Hat damit zu tun, dass komischerweise die .exe nicht auf anderen Computern ausführbar ist.</p>
<p>Jedoch, wenn ich den Code in CodeBlocks (+MingW-Compiler) einfüge und kompilieren lasse, dass ich dutzende Fehler bekomme wovon ich kaum einen Peil habe. Er zeigt mir Fehler in den &lt;headers&gt; an...</p>
<pre><code class="language-cpp">bool ReadInput ( const wchar_t* FILENAME )
{
	std::ifstream IN_FILE ( FILENAME, std::ios::in ) ; //no matching function for call to `std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ifstream(wchar_t*&amp;, const std::_Ios_Openmode&amp;)'|
	std::stringstream Input ;
	if ( !IN_FILE )
	{
		std::cerr &lt;&lt; &quot;File ( IN_FILE ) konnte nicht gefunden bzw. geöffnet werden!&quot; &lt;&lt; std::endl ;
		return false ;
	}
	std::string buffer((std::istreambuf_iterator &lt; char&gt; (IN_FILE)), std::istreambuf_iterator &lt; char&gt; ());
	BUFFER= buffer ;
	return true ;
}
</code></pre>
<p>Der Code lässt sich aber in VC++ sauber kompilieren.</p>
<p>Danke für eure Hilfe!</p>
<p>lG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/251771/mingw-vs-msvc-2008-compiler</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 06:46:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/251771.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Oct 2009 10:10:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MingW VS MSVC 2008 Compiler on Sat, 10 Oct 2009 10:10:46 GMT]]></title><description><![CDATA[<p>Hey</p>
<p>ich arbeite grade an einem Projekt und hoffe hier Hilfe zu finden.</p>
<p>Die Sache ist so: Ich arbeite eigentlich sehr gerne mit der VC++ IDE. Wegen der Projektverwaltung und weil sie leichter zu bedienen ist...</p>
<p>Aber wenn die Projekte fertig sind, würde ich sie gerne nicht mit dem MSVC 2008 Compiler kompilieren. Sondern mit dem MingWCompiler.</p>
<p>Hat damit zu tun, dass komischerweise die .exe nicht auf anderen Computern ausführbar ist.</p>
<p>Jedoch, wenn ich den Code in CodeBlocks (+MingW-Compiler) einfüge und kompilieren lasse, dass ich dutzende Fehler bekomme wovon ich kaum einen Peil habe. Er zeigt mir Fehler in den &lt;headers&gt; an...</p>
<pre><code class="language-cpp">bool ReadInput ( const wchar_t* FILENAME )
{
	std::ifstream IN_FILE ( FILENAME, std::ios::in ) ; //no matching function for call to `std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ifstream(wchar_t*&amp;, const std::_Ios_Openmode&amp;)'|
	std::stringstream Input ;
	if ( !IN_FILE )
	{
		std::cerr &lt;&lt; &quot;File ( IN_FILE ) konnte nicht gefunden bzw. geöffnet werden!&quot; &lt;&lt; std::endl ;
		return false ;
	}
	std::string buffer((std::istreambuf_iterator &lt; char&gt; (IN_FILE)), std::istreambuf_iterator &lt; char&gt; ());
	BUFFER= buffer ;
	return true ;
}
</code></pre>
<p>Der Code lässt sich aber in VC++ sauber kompilieren.</p>
<p>Danke für eure Hilfe!</p>
<p>lG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790462</guid><dc:creator><![CDATA[Blubi1234]]></dc:creator><pubDate>Sat, 10 Oct 2009 10:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to MingW VS MSVC 2008 Compiler on Sat, 10 Oct 2009 10:17:40 GMT]]></title><description><![CDATA[<p>Ganz einfach: Den CTor gibts nicht...</p>
<p><a href="http://www.cplusplus.com/reference/iostream/ifstream/ifstream/" rel="nofollow">http://www.cplusplus.com/reference/iostream/ifstream/ifstream/</a></p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790466</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 10 Oct 2009 10:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to MingW VS MSVC 2008 Compiler on Sat, 10 Oct 2009 10:31:24 GMT]]></title><description><![CDATA[<p>Hmmm,</p>
<p>okey. Gibt es das jetzt eine Möglichkeit das Problem zu umgehen? \:<br />
Komme nämlich nicht drauf...</p>
<p>Danke für deine Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790475</guid><dc:creator><![CDATA[Blubi1234]]></dc:creator><pubDate>Sat, 10 Oct 2009 10:31:24 GMT</pubDate></item><item><title><![CDATA[Reply to MingW VS MSVC 2008 Compiler on Sat, 10 Oct 2009 10:43:41 GMT]]></title><description><![CDATA[<p>Blubi1234 schrieb:</p>
<blockquote>
<p>Hat damit zu tun, dass komischerweise die .exe nicht auf anderen Computern ausführbar ist.</p>
</blockquote>
<p>Du kannst statisch linken oder du installierst das &quot;Redistributable Package&quot; von Microsoft auf den entsprechenden Rechnern, dann ist die exe auch ausführbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790481</guid><dc:creator><![CDATA[Mitleid]]></dc:creator><pubDate>Sat, 10 Oct 2009 10:43:41 GMT</pubDate></item><item><title><![CDATA[Reply to MingW VS MSVC 2008 Compiler on Sat, 10 Oct 2009 15:00:03 GMT]]></title><description><![CDATA[<p>Blubi1234 schrieb:</p>
<blockquote>
<p>Hmmm,</p>
<p>okey. Gibt es das jetzt eine Möglichkeit das Problem zu umgehen? \:<br />
Komme nämlich nicht drauf...</p>
<p>Danke für deine Hilfe!</p>
</blockquote>
<p>naja - keine wirklich gute...<br />
wieso hast du den pfad denn als wide-string? wo bekommst du den her?</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1790609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1790609</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 10 Oct 2009 15:00:03 GMT</pubDate></item></channel></rss>