<?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[Konstruktor für Template´s]]></title><description><![CDATA[<p>Ich setzte mich gerade mit Templates auseinander. &quot;Beim Kompilieren bekomme ich vollgende Fehlermeldung:Liste_Template error LNK2019: Nicht aufgelöstes externes Symbol '&quot;public: __thiscall cListe&lt;int&gt;::cListe&lt;int&gt;(void)&quot; (??0?$cListe@H@@QAE@XZ)', verwiesen in Funktion '_main'&quot;<br />
Der Code sieht beisher wie folgt aus:</p>
<pre><code class="language-cpp">// cListe.h
#ifndef CLISTE_H
#define CLISTE_H

template &lt;class T&gt;
class cListe
{
private:
	T *pAnker;
	T *pEnde;
	T test;
public:
	cListe();

};
#endif
</code></pre>
<pre><code class="language-cpp">//cListe.cpp
#include &quot;stdafx.h&quot;
#include &quot;cListe.h&quot;

using namespace std;

template &lt;class T&gt;
cListe&lt;T&gt;::cListe()
{
	this-&gt;pAnker = 0;
	this-&gt;pEnde = 0;
	this-&gt;test = 0;
}
</code></pre>
<pre><code class="language-cpp">// main.cpp
#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;
#include &quot;cListe.h&quot;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cListe&lt;int&gt; meineListe;
	return 0;
}
</code></pre>
<p>Weiss jemand, was ich hier falschmache?<br />
Gruss Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/119132/konstruktor-für-template-s</link><generator>RSS for Node</generator><lastBuildDate>Sat, 22 Aug 2026 05:35:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/119132.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Aug 2005 13:46:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konstruktor für Template´s on Sun, 28 Aug 2005 13:46:33 GMT]]></title><description><![CDATA[<p>Ich setzte mich gerade mit Templates auseinander. &quot;Beim Kompilieren bekomme ich vollgende Fehlermeldung:Liste_Template error LNK2019: Nicht aufgelöstes externes Symbol '&quot;public: __thiscall cListe&lt;int&gt;::cListe&lt;int&gt;(void)&quot; (??0?$cListe@H@@QAE@XZ)', verwiesen in Funktion '_main'&quot;<br />
Der Code sieht beisher wie folgt aus:</p>
<pre><code class="language-cpp">// cListe.h
#ifndef CLISTE_H
#define CLISTE_H

template &lt;class T&gt;
class cListe
{
private:
	T *pAnker;
	T *pEnde;
	T test;
public:
	cListe();

};
#endif
</code></pre>
<pre><code class="language-cpp">//cListe.cpp
#include &quot;stdafx.h&quot;
#include &quot;cListe.h&quot;

using namespace std;

template &lt;class T&gt;
cListe&lt;T&gt;::cListe()
{
	this-&gt;pAnker = 0;
	this-&gt;pEnde = 0;
	this-&gt;test = 0;
}
</code></pre>
<pre><code class="language-cpp">// main.cpp
#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;
#include &quot;cListe.h&quot;

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	cListe&lt;int&gt; meineListe;
	return 0;
}
</code></pre>
<p>Weiss jemand, was ich hier falschmache?<br />
Gruss Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/860077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/860077</guid><dc:creator><![CDATA[black_sheep_thomas]]></dc:creator><pubDate>Sun, 28 Aug 2005 13:46:33 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor für Template´s on Sun, 28 Aug 2005 13:56:24 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>du kannst die Implementation der Template-Funktionen nicht in CPP-Dateien auslagern. Die müßen auch über die Headerdateien für alle daraufverweisenden Includes verfügbar sein.<br />
Dazu gibts bereits ne menge in Forum zu finden.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/860093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/860093</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sun, 28 Aug 2005 13:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor für Template´s on Tue, 30 Aug 2005 10:56:24 GMT]]></title><description><![CDATA[<p>Hast du mir einen Tipp, nach was für einem Schlüsselwort ich suchen muss? Ich habe es bisher mit &quot;template&quot; und &quot;&lt;class&quot; versucht und nichts gefunden, was mir geholfen hätte...</p>
<p>mfg Thomas</p>
]]></description><link>https://www.c-plusplus.net/forum/post/861270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/861270</guid><dc:creator><![CDATA[black_sheep_thomas]]></dc:creator><pubDate>Tue, 30 Aug 2005 10:56:24 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor für Template´s on Tue, 30 Aug 2005 11:02:20 GMT]]></title><description><![CDATA[<p>zb faq: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39467.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39467.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/861273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/861273</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Tue, 30 Aug 2005 11:02:20 GMT</pubDate></item><item><title><![CDATA[Reply to Konstruktor für Template´s on Thu, 08 Sep 2005 11:05:45 GMT]]></title><description><![CDATA[<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/867704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/867704</guid><dc:creator><![CDATA[black_sheep_thomas]]></dc:creator><pubDate>Thu, 08 Sep 2005 11:05:45 GMT</pubDate></item></channel></rss>