<?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[error LNK2019, ich weiß nicht weiter]]></title><description><![CDATA[<p>Hallo allerseits,</p>
<p>ich habe vor Kurzem mit C++ angefangen (unter MV C++ 2005 Express Edition) und sein gestern habe ich ein Problem zu dem ich einfach keine Lösung finde (auch nicht online). Es sieht folgendermaßen aus:</p>
<p>ich habe eine Klasse SimpleList in einer Header-Datei deklariert und die Methoden in einer Source-Datei definiert, dann versuche ich eine Instanz zu erzeugen, worauf aber dann der Compiler anfängt rumzumeckern. (SimpleList.h und SimpleList.cpp habe ich dem Projekt hinzugefügt)</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;SimpleList.h&quot;

int _tmain(int argc, _TCHAR* argv[])
{
	SimpleList&lt;string&gt;* sl = new SimpleList&lt;string&gt;();
	delete sl;
	getchar();
	return 0;
}
</code></pre>
<p>HashTable_mit_neuer_Liste.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: __thiscall SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;::~SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;(void)&quot; (??1?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>S</mi><mi>i</mi><mi>m</mi><mi>p</mi><mi>l</mi><mi>e</mi><mi>L</mi><mi>i</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">SimpleList@V?</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.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">i</span><span class="mord mathit">m</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">e</span><span class="mord mathit">L</span><span class="mord mathit">i</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>basic_string@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@V?</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">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@D@2@@std@@@@QAE@XZ)&quot; in Funktion &quot;&quot;public: void * __thiscall SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;::`scalar deleting destructor'(unsigned int)&quot; (??_G?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>S</mi><mi>i</mi><mi>m</mi><mi>p</mi><mi>l</mi><mi>e</mi><mi>L</mi><mi>i</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">SimpleList@V?</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.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">i</span><span class="mord mathit">m</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">e</span><span class="mord mathit">L</span><span class="mord mathit">i</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>basic_string@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@V?</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">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@D@2@@std@@@@QAEPAXI@Z)&quot;.</p>
<p>Ich weiß einfach nicht mehr weiter <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="😞"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> , könnte mir bitte jemand weiter helfen, danke im Voraus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159046/error-lnk2019-ich-weiß-nicht-weiter</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 11:11:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159046.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Sep 2006 14:45:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Mon, 11 Sep 2006 14:45:56 GMT]]></title><description><![CDATA[<p>Hallo allerseits,</p>
<p>ich habe vor Kurzem mit C++ angefangen (unter MV C++ 2005 Express Edition) und sein gestern habe ich ein Problem zu dem ich einfach keine Lösung finde (auch nicht online). Es sieht folgendermaßen aus:</p>
<p>ich habe eine Klasse SimpleList in einer Header-Datei deklariert und die Methoden in einer Source-Datei definiert, dann versuche ich eine Instanz zu erzeugen, worauf aber dann der Compiler anfängt rumzumeckern. (SimpleList.h und SimpleList.cpp habe ich dem Projekt hinzugefügt)</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;SimpleList.h&quot;

int _tmain(int argc, _TCHAR* argv[])
{
	SimpleList&lt;string&gt;* sl = new SimpleList&lt;string&gt;();
	delete sl;
	getchar();
	return 0;
}
</code></pre>
<p>HashTable_mit_neuer_Liste.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: __thiscall SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;::~SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;(void)&quot; (??1?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>S</mi><mi>i</mi><mi>m</mi><mi>p</mi><mi>l</mi><mi>e</mi><mi>L</mi><mi>i</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">SimpleList@V?</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.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">i</span><span class="mord mathit">m</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">e</span><span class="mord mathit">L</span><span class="mord mathit">i</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>basic_string@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@V?</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">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@D@2@@std@@@@QAE@XZ)&quot; in Funktion &quot;&quot;public: void * __thiscall SimpleList&lt;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &gt;::`scalar deleting destructor'(unsigned int)&quot; (??_G?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>S</mi><mi>i</mi><mi>m</mi><mi>p</mi><mi>l</mi><mi>e</mi><mi>L</mi><mi>i</mi><mi>s</mi><mi>t</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">SimpleList@V?</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.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">i</span><span class="mord mathit">m</span><span class="mord mathit">p</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">e</span><span class="mord mathit">L</span><span class="mord mathit">i</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>basic_string@DU?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>c</mi><mi>h</mi><mi>a</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi>t</mi><mi>r</mi><mi>a</mi><mi>i</mi><mi>t</mi><mi>s</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi mathvariant="normal">@</mi><mi>s</mi><mi>t</mi><mi>d</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">char\_traits@D@std@@V?</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">c</span><span class="mord mathit">h</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">a</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">s</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathrm">@</span><span class="mord mathit">s</span><span class="mord mathit">t</span><span class="mord mathit">d</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>allocator@D@2@@std@@@@QAEPAXI@Z)&quot;.</p>
<p>Ich weiß einfach nicht mehr weiter <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="😞"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> , könnte mir bitte jemand weiter helfen, danke im Voraus!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135242</guid><dc:creator><![CDATA[9taleFox]]></dc:creator><pubDate>Mon, 11 Sep 2006 14:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Mon, 11 Sep 2006 14:50:10 GMT]]></title><description><![CDATA[<p>Du kannst Templates nicht in Sourcefiles auslagern, da der Compiler sie dann bei ihrer Erzeugung nicht findet. Template bedeutet ja Vorlage, d.h. der Compiler erzeugt erst dann eine Klasse aus der Vorlage wenn Du sie instanzierst. Du musst die Methoden des Templates im Header SimpleList.h lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135248</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Mon, 11 Sep 2006 14:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Mon, 11 Sep 2006 15:26:13 GMT]]></title><description><![CDATA[<p>Ah!!! Das hätte mir auch klar sein müssen, vielen Dank!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1135299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135299</guid><dc:creator><![CDATA[9taleFox]]></dc:creator><pubDate>Mon, 11 Sep 2006 15:26:13 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Thu, 14 Sep 2006 11:32:41 GMT]]></title><description><![CDATA[<p>Alle Templates die ich habe, habe ich nun in den Headern, die Klassen habe ich auch mehrmals getestet und die laufen problemlos, nun habe ich das selbe Problem wieder und an den Templates kann es diesmal nicht liegen (denke ich zumindest, oder ich verstehe da etwas nicht). Ich kann die Klasse zwar problemlos kompilieren aber so bald ich versuche eine Instanz zu erzeugen gibt es wieder den selben Fehler, hier die Klasse:</p>
<p>Header:</p>
<pre><code class="language-cpp">#include &lt;string&gt;
#include &quot;Hashtable.h&quot;
#pragma hdrstop
#pragma once
#ifndef __TRANSFORMATIONSKNOTEN__
#define __TRANSFORMATIONSKNOTEN__
class SzeneManager;
//#include &quot;SzeneManager.h&quot;
#include &quot;SpeicherbaresObjekt.h&quot;
#include &quot;IDarstellbar.h&quot;
...
#endif __TRANSFORMATIONSKNOTEN__
</code></pre>
<p>Source:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#pragma hdrstop
#include &quot;TransformationsKnoten.h&quot;
...
</code></pre>
<p>weiß jemand darauf ne Antwort? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1135755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1135755</guid><dc:creator><![CDATA[9taleFox]]></dc:creator><pubDate>Thu, 14 Sep 2006 11:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Tue, 12 Sep 2006 20:04:49 GMT]]></title><description><![CDATA[<p>Also es ist jetzt so, dass wenn ich anstatt den Header zu Inkludieren, Source einbinde womit es auch keinen Fehler mehr gibt, aber sollte, dass nicht auch mit dem Header gehen ??? ich verstehe das nicht ganz, wieso. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1136156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136156</guid><dc:creator><![CDATA[9taleFox]]></dc:creator><pubDate>Tue, 12 Sep 2006 20:04:49 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2019, ich weiß nicht weiter on Wed, 13 Sep 2006 16:43:18 GMT]]></title><description><![CDATA[<p>Ich habe jetzt die Lösung, auch wenn ich nicht ganz nachvollziehen kann wieso es so sein muss, alles was ich machen musste war, den Header- und die Sourcedatei dem Projekt hinzuzufügen und in der Source “stdafx.h“ zu includieren, und schon läuft es aber wieso? K.a. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1136825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136825</guid><dc:creator><![CDATA[9taleFox]]></dc:creator><pubDate>Wed, 13 Sep 2006 16:43:18 GMT</pubDate></item></channel></rss>