<?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[cout-problem]]></title><description><![CDATA[<p>Hallo hab ma ein problem:</p>
<p>hier der code:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cout &lt;&lt; &quot;hi&quot;;
	return 0;
}
</code></pre>
<p>und hier die fehlermeldung:</p>
<p>Compiling...<br />
stdafx.cpp<br />
Compiling...<br />
COUT.cpp<br />
Compiling manifest to resources...<br />
Linking...<br />
COUT.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __cdecl std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,char const *)&quot; (__imp_??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>?</mo><mn>6</mn><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">?6DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mclose">?</span><span class="mord mathrm">6</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@YAAAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ostream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _wmain<br />
C:\Dokumente und Einstellungen\Visual Studio 2008\Projects\COUT\Debug\COUT.exe : fatal error LNK1120: 1 unresolved externals<br />
Build log was saved at &quot;file://c:\Dokumente und Einstellungen\Visual Studio 2008\Projects\COUT\COUT\Debug\BuildLog.htm&quot;<br />
COUT - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>also warum funktionier iostream denn nicht?<br />
hab mal ein fertigen code von nem tutorial (in dem auch iostream und cout verwendet wird) in mein projekt reinkopiert und es hat auch nicht funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Compiler: MS Virtual Studio 2008 Express Edition</p>
<p>danke im voraus<br />
gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209751/cout-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 05:37:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209751.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Apr 2008 00:06:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cout-problem on Thu, 03 Apr 2008 00:06:42 GMT]]></title><description><![CDATA[<p>Hallo hab ma ein problem:</p>
<p>hier der code:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cout &lt;&lt; &quot;hi&quot;;
	return 0;
}
</code></pre>
<p>und hier die fehlermeldung:</p>
<p>Compiling...<br />
stdafx.cpp<br />
Compiling...<br />
COUT.cpp<br />
Compiling manifest to resources...<br />
Linking...<br />
COUT.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __cdecl std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,char const *)&quot; (__imp_??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>?</mo><mn>6</mn><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">?6DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mclose">?</span><span class="mord mathrm">6</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@YAAAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ostream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _wmain<br />
C:\Dokumente und Einstellungen\Visual Studio 2008\Projects\COUT\Debug\COUT.exe : fatal error LNK1120: 1 unresolved externals<br />
Build log was saved at &quot;file://c:\Dokumente und Einstellungen\Visual Studio 2008\Projects\COUT\COUT\Debug\BuildLog.htm&quot;<br />
COUT - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>also warum funktionier iostream denn nicht?<br />
hab mal ein fertigen code von nem tutorial (in dem auch iostream und cout verwendet wird) in mein projekt reinkopiert und es hat auch nicht funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Compiler: MS Virtual Studio 2008 Express Edition</p>
<p>danke im voraus<br />
gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485571</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Thu, 03 Apr 2008 00:06:42 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Thu, 03 Apr 2008 09:08:58 GMT]]></title><description><![CDATA[<p>Du hast kein <code>cout</code> -Problem, sondern ein Unicodeproblem:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

#include &lt;tchar.h&gt;

#ifdef UNICODE
	std::wostream&amp; tcout( std::wcout );
	std::wostream&amp; tcerr( std::wcerr );
	std::wistream&amp; tcin( std::wcin );
#else
	std::ostream&amp; tcout( std::cout );
	std::ostream&amp; tcerr( std::cerr );
	std::istream&amp; tcin( std::cin );
#endif

int _tmain( )
{
	tcout &lt;&lt; _T( &quot;hi&quot; ) &lt;&lt; std::endl;
}
</code></pre>
<p>sollte funktionieren.</p>
<p>cheers, Swordfish</p>
<p>PS: Brauchst du *wirklich* unterstützung für Unicode?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485662</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Fri, 04 Apr 2008 08:52:35 GMT]]></title><description><![CDATA[<p>hi danke erstma<br />
aber funktionieren tuts leider nicht. UNICODE war nicht definiert aber beim linken gibts immernoch den error:</p>
<p>Output:<br />
------</p>
<p>------ Build started: Project: COUT, Configuration: Debug Win32 ------<br />
Compiling...<br />
COUT.cpp<br />
Linking...<br />
COUT.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __cdecl std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,char const *)&quot; (__imp_??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>?</mo><mn>6</mn><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">?6DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mclose">?</span><span class="mord mathrm">6</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@YAAAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ostream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _wmain<br />
C:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\Debug\COUT.exe : fatal error LNK1120: 1 unresolved externals<br />
Build log was saved at &quot;file://c:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\COUT\Debug\BuildLog.htm&quot;<br />
COUT - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>##edit<br />
warum is UNICODE eigentlich nirgends definiert (nicht stdio.h, nicht windows.h,...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1486264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1486264</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Fri, 04 Apr 2008 08:52:35 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Fri, 04 Apr 2008 09:30:27 GMT]]></title><description><![CDATA[<p>Fachmann schrieb:</p>
<blockquote>
<p>##edit<br />
warum is UNICODE eigentlich nirgends definiert (nicht stdio.h, nicht windows.h,...)</p>
</blockquote>
<p>Visual Studio, oder?<br />
Projekteigenschaften -&gt; Konfigurationseigenschaften -&gt; Allgemein -&gt; Zeichensatz: Unicode- oder Multibyte-Zeichensatz</p>
<p>cheers, Swordfish</p>
<p>PS: Wie hast du überprüft, ob <code>UNICODE</code> definiert ist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1486300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1486300</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Fri, 04 Apr 2008 09:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Fri, 04 Apr 2008 09:55:17 GMT]]></title><description><![CDATA[<p>bei visual studio wird der code:</p>
<pre><code class="language-cpp">#ifdef UNICODE
    std::wostream&amp; tcout( std::wcout );
    std::wostream&amp; tcerr( std::wcerr );
    std::wistream&amp; tcin( std::wcin );
</code></pre>
<p>etwas heller geschrieben. meine vermutung: er wird nicht kompiliert.</p>
<p>ok hab ma charakterset auch multiple byte gesetzt aber es kommt immernoch der error:</p>
<p>Compiling...<br />
COUT.cpp<br />
Linking...<br />
COUT.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __cdecl std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,char const *)&quot; (__imp_??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>?</mo><mn>6</mn><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">?6DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mclose">?</span><span class="mord mathrm">6</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@YAAAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ostream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _main<br />
C:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\Debug\COUT.exe : fatal error LNK1120: 1 unresolved externals<br />
Build log was saved at &quot;file://c:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\COUT\Debug\BuildLog.htm&quot;<br />
COUT - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>hier nochma der code:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

#ifdef UNICODE
    std::wostream&amp; tcout( std::wcout );
    std::wostream&amp; tcerr( std::wcerr );
    std::wistream&amp; tcin( std::wcin );
#else
    std::ostream&amp; tcout( std::cout );
    std::ostream&amp; tcerr( std::cerr );
    std::istream&amp; tcin( std::cin );
#endif

int _tmain(int argc, _TCHAR* argv[])
{
	cout &lt;&lt; &quot;hi&quot;;
	return 0;
}
</code></pre>
<p>stdafx.h :</p>
<pre><code class="language-cpp">#pragma once

#include &quot;targetver.h&quot;

#include &lt;stdio.h&gt;
#include &lt;tchar.h&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1486321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1486321</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Fri, 04 Apr 2008 09:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Fri, 04 Apr 2008 09:59:40 GMT]]></title><description><![CDATA[<p>Solltest du dann nicht auch tout in der main benutzen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1486324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1486324</guid><dc:creator><![CDATA[Fellhuhn]]></dc:creator><pubDate>Fri, 04 Apr 2008 09:59:40 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Fri, 04 Apr 2008 10:09:24 GMT]]></title><description><![CDATA[<p>Naja, wenn <code>UNICODE</code> nicht definiert ist, müsst's eigentlich wurscht sein <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Hau' den Code mal in ein neues Konsolenprojekt ohne vorkompilierte Header.</p>
<p>cheers, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1486335</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1486335</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Fri, 04 Apr 2008 10:09:24 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sat, 05 Apr 2008 23:36:40 GMT]]></title><description><![CDATA[<p>joo hab ich , geht net</p>
<p>also das tutorial von <a href="http://GameTutorials.com" rel="nofollow">GameTutorials.com</a> funktioniert auch nicht (dort ist nur eine main.cpp, in die iostream includiert wird) . liegt es dann nicht am compiler?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487210</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487210</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Sat, 05 Apr 2008 23:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 10:01:46 GMT]]></title><description><![CDATA[<p>Ersetze mal <code>t_main()</code> durch <code>main()</code> , den Zeigertyp von <code>argv[]</code> durch <code>char*</code> und setze in den Projekteigenschaften den Zeichensatz auf &quot;Not set&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487284</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487284</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sun, 06 Apr 2008 10:01:46 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 11:39:42 GMT]]></title><description><![CDATA[<p>hilft nix <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>bei <a href="http://GameTutorials.com" rel="nofollow">GameTutorials.com</a> wird lediglich in die einzigste datei des projektes die beiden header: &lt;iostream&gt; und &lt;string&gt; eingefügt. darunter kommt dann &quot;using namespace std&quot;.</p>
<p>hier *nochma* einen TOTAL EINFACHEN QUELLTEXT (ohne STDAFX un son müll):</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;				
#include &lt;string&gt;				
using namespace std;

#include &lt;tchar.h&gt;

int main()
{
	cout &lt;&lt; &quot;hi&quot;;
	return 0;
}
</code></pre>
<p>hier der error output:</p>
<p>------ Build started: Project: COUT, Configuration: Debug Win32 ------<br />
Compiling...<br />
cout.cpp<br />
Compiling manifest to resources...<br />
Linking...<br />
cout.obj : error LNK2019: unresolved external symbol &quot;__declspec(dllimport) class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __cdecl std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;,char const *)&quot; (__imp_??<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>?</mo><mn>6</mn><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">?6DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.69444em;vertical-align:0em;"></span><span class="base textstyle uncramped"><span class="mclose">?</span><span class="mord mathrm">6</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@std@@YAAAV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>b</mi><mi>a</mi><mi>s</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">_</mi><mi>o</mi><mi>s</mi><mi>t</mi><mi>r</mi><mi>e</mi><mi>a</mi><mi>m</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>U</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">basic\_ostream@DU?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:1.00444em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">b</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">o</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">e</span><span class="mord mathit">a</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mclose">?</span></span></span></span>char_traits@D@std@@@0@AAV10@PBD@Z) referenced in function _main<br />
C:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\Debug\COUT.exe : fatal error LNK1120: 1 unresolved externals<br />
Build log was saved at &quot;file://c:\Dokumente und Einstellungen\Eigene Dateien\Visual Studio 2008\Projects\COUT\COUT\Debug\BuildLog.htm&quot;<br />
COUT - 2 error(s), 0 warning(s)<br />
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</p>
<p>##edit: natürlich kann man &quot;string&quot; und &quot;tchar&quot; auch weglassen un man enthält den selben fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487330</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Sun, 06 Apr 2008 11:39:42 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 11:34:48 GMT]]></title><description><![CDATA[<p>Benötigst du den Header tchar.h? Versuch doch mal, ihn wegzulassen.<br />
Ansonsten, erstell doch ein neues leeres Projekt ohne vorkompilierte Header und kopier den Code, vielleicht hilfts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487333</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 06 Apr 2008 11:34:48 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 13:56:55 GMT]]></title><description><![CDATA[<p>no ging nicht.</p>
<p>tchar war noch ein überbleibsel<br />
hab MSVC++ neu installiert , ein komplett leeres project gemacht. hab eine datei eingefügt un diesen text compiliert:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main()
{
	cout &lt;&lt; &quot;hi&quot;;
}
</code></pre>
<p>error output siehe vorherige posts^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487394</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Sun, 06 Apr 2008 13:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 14:18:41 GMT]]></title><description><![CDATA[<p>Hm, das ist schon sehr merkwürdig. Du hast ja schon eine Konsolenanwendung erstellt, oder? Und nichts an den Projekt-Eigenschaften oder Include- bzw. Lib-Verzeichnissen verändert?</p>
<p>Ich hab dasselbe bei mir ausprobiert, da gings einwandfrei. Was passiert, wenn du das Projekt oder die Projektmappe neu erstellst? Ich selber hatte schon ähnliche Fehlermeldungen, die danach verschwanden.</p>
<p>Hast du eigentlich dieses Problem erst seit kurzem, funktionierte der VC++ vorher ohne Probleme? Im Notfall würde ich den Visual C++ Express noch einmal downloaden und neu installieren, möglicherweise wurde da etwas beschädigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487406</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 06 Apr 2008 14:18:41 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 16:10:37 GMT]]></title><description><![CDATA[<p>consolenanwendung ist es.<br />
das problem hab ich keine ahnung wie lang<br />
ist das erste mal dass ich cout usw verwende.<br />
aber ich glaub ich downloade mir den scheiss nochma un guck obs dann geht.<br />
ich hab auch vermutet dass ich falsche include-directories verwende aber dabei können doch nicht so fehler passieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487460</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Sun, 06 Apr 2008 16:10:37 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Sun, 06 Apr 2008 17:28:09 GMT]]></title><description><![CDATA[<p>Also du benutzt ja keine anderen Dateien. Das was du da hast sollte auf Anhieb compilierbar sein.. Ausser du hast sonst was verstellt.. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Ich würde auch mal Neuinstallation raten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487504</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 06 Apr 2008 17:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to cout-problem on Mon, 07 Apr 2008 14:02:14 GMT]]></title><description><![CDATA[<p>neuinstallation war hilflos, ich steig um auf MSVC++ 6.0 , das ist zwar alt aber funktioniert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1487954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1487954</guid><dc:creator><![CDATA[Fachmann]]></dc:creator><pubDate>Mon, 07 Apr 2008 14:02:14 GMT</pubDate></item></channel></rss>