<?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[template problem:]]></title><description><![CDATA[<p>folgende klasse:</p>
<pre><code class="language-cpp">class Application
{
//....

template &lt;class t&gt;
void run(t arg);

//....
};

//Implementation in Datei &quot;Application.cpp&quot;

template &lt;class t&gt;
void Application::run(t arg)
{
    arg.run();
}
</code></pre>
<p>wird in folgender klasse verwendet:</p>
<pre><code class="language-cpp">class Game
{
//...
void run();
//...
}

//Implementation in &quot;game.cpp&quot;

void Game::run()
{
    Application a;
    a.run(this);
}
</code></pre>
<p>(grobe Struktur, hier irgendwo liegt der Fehler, ich weiss nur nich wo)</p>
<p>folgende Fehlermeldung:</p>
<p>error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: void __thiscall Application::run&lt;class Game *&gt;(class Game *)&quot; (??$run@PAVGame@@Application@@QAEXPAVGame@1@@Z)&quot; in Funktion &quot;&quot;public: bool __thiscall Game::run(void)&quot; (?run@Game@@QAE_NXZ)</p>
<p>wo liegts?</p>
<p>edit: was is in poker ein shootout turnier? (holdem)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175452/template-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 03:48:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175452.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Mar 2007 17:10:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to template problem: on Sat, 10 Mar 2007 17:15:08 GMT]]></title><description><![CDATA[<p>folgende klasse:</p>
<pre><code class="language-cpp">class Application
{
//....

template &lt;class t&gt;
void run(t arg);

//....
};

//Implementation in Datei &quot;Application.cpp&quot;

template &lt;class t&gt;
void Application::run(t arg)
{
    arg.run();
}
</code></pre>
<p>wird in folgender klasse verwendet:</p>
<pre><code class="language-cpp">class Game
{
//...
void run();
//...
}

//Implementation in &quot;game.cpp&quot;

void Game::run()
{
    Application a;
    a.run(this);
}
</code></pre>
<p>(grobe Struktur, hier irgendwo liegt der Fehler, ich weiss nur nich wo)</p>
<p>folgende Fehlermeldung:</p>
<p>error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: void __thiscall Application::run&lt;class Game *&gt;(class Game *)&quot; (??$run@PAVGame@@Application@@QAEXPAVGame@1@@Z)&quot; in Funktion &quot;&quot;public: bool __thiscall Game::run(void)&quot; (?run@Game@@QAE_NXZ)</p>
<p>wo liegts?</p>
<p>edit: was is in poker ein shootout turnier? (holdem)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242979</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sat, 10 Mar 2007 17:15:08 GMT</pubDate></item><item><title><![CDATA[Reply to template problem: on Sat, 10 Mar 2007 17:28:54 GMT]]></title><description><![CDATA[<p>Wenn Du Templates verwendest, kannst Du nicht in Header- und Implementierungsdateien trennen. Dazu gibt es im Standard zwar das Schlüsselwort 'extern', das kennt aber kaum ein Compiler. =&gt; Pack die Implementierung der Template-Funktion in den Header.</p>
<p>Von Poker habe ich keine Ahnung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1242992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242992</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Sat, 10 Mar 2007 17:28:54 GMT</pubDate></item><item><title><![CDATA[Reply to template problem: on Sat, 10 Mar 2007 17:30:09 GMT]]></title><description><![CDATA[<p><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/1242993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1242993</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Sat, 10 Mar 2007 17:30:09 GMT</pubDate></item><item><title><![CDATA[Reply to template problem: on Sat, 10 Mar 2007 17:58:17 GMT]]></title><description><![CDATA[<p>Konrad Rudolph schrieb:</p>
<blockquote>
<p>Dazu gibt es im Standard zwar das Schlüsselwort 'extern', das kennt aber kaum ein Compiler.</p>
</blockquote>
<p>Abgesehen davon heißt das Schlüsselwort eh export.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1243010</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1243010</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Sat, 10 Mar 2007 17:58:17 GMT</pubDate></item><item><title><![CDATA[Reply to template problem: on Sat, 10 Mar 2007 18:05:41 GMT]]></title><description><![CDATA[<p>GPC schrieb:</p>
<blockquote>
<p>Abgesehen davon heißt das Schlüsselwort eh export.</p>
</blockquote>
<p>OMG. Wieso habe ich denn 'extern' geschrieben? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1243012</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1243012</guid><dc:creator><![CDATA[Konrad Rudolph]]></dc:creator><pubDate>Sat, 10 Mar 2007 18:05:41 GMT</pubDate></item></channel></rss>