<?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[Typ wurde nicht deklariert obwohl schon]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versteh überhaupt nicht woran mein Problem liegen kann. Da ich etwas mehr code habe habe ich ein Minimalbeispiel mir erstellt bei dem alles problemlos funktioniert. In meinem gesamtcode allerdings nicht.</p>
<p>Ich habe folgende struktur:</p>
<pre><code class="language-cpp">#include &quot;My_Type.h&quot;

template &lt;class T&gt;
MyClass : Base_Class
{

     public:
            My_Type*  to_My_Type(Other_Type* ot);
};
</code></pre>
<p>und es kommt die Fehlermeldung:</p>
<pre><code>MyClass.h:8: Fehler: »My_Type« wurde nicht deklariert
</code></pre>
<p>Wie kann das sein? Ich habe doch den Header eingebunden....</p>
<p>Da mein externes Minimalbeispiel probelmlos funktioniert weiß ich überhaupt nicht mehr was ich tun kann bzw. wo mein fehler liegt? Habt ihr Iddeeen?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/247196/typ-wurde-nicht-deklariert-obwohl-schon</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 15:57:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/247196.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Aug 2009 13:15:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Typ wurde nicht deklariert obwohl schon on Fri, 07 Aug 2009 13:15:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versteh überhaupt nicht woran mein Problem liegen kann. Da ich etwas mehr code habe habe ich ein Minimalbeispiel mir erstellt bei dem alles problemlos funktioniert. In meinem gesamtcode allerdings nicht.</p>
<p>Ich habe folgende struktur:</p>
<pre><code class="language-cpp">#include &quot;My_Type.h&quot;

template &lt;class T&gt;
MyClass : Base_Class
{

     public:
            My_Type*  to_My_Type(Other_Type* ot);
};
</code></pre>
<p>und es kommt die Fehlermeldung:</p>
<pre><code>MyClass.h:8: Fehler: »My_Type« wurde nicht deklariert
</code></pre>
<p>Wie kann das sein? Ich habe doch den Header eingebunden....</p>
<p>Da mein externes Minimalbeispiel probelmlos funktioniert weiß ich überhaupt nicht mehr was ich tun kann bzw. wo mein fehler liegt? Habt ihr Iddeeen?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1756953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1756953</guid><dc:creator><![CDATA[uffob]]></dc:creator><pubDate>Fri, 07 Aug 2009 13:15:28 GMT</pubDate></item><item><title><![CDATA[Reply to Typ wurde nicht deklariert obwohl schon on Fri, 07 Aug 2009 13:19:39 GMT]]></title><description><![CDATA[<p>hmm seltsam...anscheinend irgendwie zyklische includes drin gehabt - aber ich hab überall include-guards....die müssen da doch greifen oder nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1756957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1756957</guid><dc:creator><![CDATA[uffob]]></dc:creator><pubDate>Fri, 07 Aug 2009 13:19:39 GMT</pubDate></item><item><title><![CDATA[Reply to Typ wurde nicht deklariert obwohl schon on Fri, 07 Aug 2009 13:25:53 GMT]]></title><description><![CDATA[<p>uffob schrieb:</p>
<blockquote>
<p>hmm seltsam...anscheinend irgendwie zyklische includes drin gehabt - aber ich hab überall include-guards....die müssen da doch greifen oder nicht?</p>
</blockquote>
<p>Nein, <em>Include-Guards</em> helfen nur mit, um die doppelte Definition zu verhindern. Sie verhindern schliesslich das doppelte Inkludieren des gleichen <em>Headers</em>. Bei zyklischen <em>Includes</em> helfen sie nicht.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1756961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1756961</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Fri, 07 Aug 2009 13:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Typ wurde nicht deklariert obwohl schon on Fri, 07 Aug 2009 13:54:00 GMT]]></title><description><![CDATA[<p>Erstmal auf korrekte Syntax achten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1756969</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1756969</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Fri, 07 Aug 2009 13:54:00 GMT</pubDate></item><item><title><![CDATA[Reply to Typ wurde nicht deklariert obwohl schon on Fri, 07 Aug 2009 14:13:09 GMT]]></title><description><![CDATA[<p>schreib ma vor deine klasse das hier:</p>
<p>class My_Type;</p>
<p>template class blablabla...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1756983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1756983</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Fri, 07 Aug 2009 14:13:09 GMT</pubDate></item></channel></rss>