<?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[Klasse &amp;quot;has not been declared&amp;quot; Fehler - Finde Ursache nicht [gelöst]]]></title><description><![CDATA[<p>Hallo,<br />
ich bin gerade in den letzten Zügen für eine eigene kleine Gameengine. Nun habe ich aber einen Fehler und alle Lösungsvorschläge von Google haben mir nicht geholfen. Hier die Fehlermeldung:</p>
<pre><code>In file included from GLSystem/GLSystem.h:27:0,
                 from main.cpp:15:
GLSystem/GLMouseObject.h: At global scope:
GLSystem/GLMouseObject.h:13:50: error: ‘GlObject’ has not been declared
</code></pre>
<p>main.cpp inkludiert in Zeile 15 halt einfach nur die GLSystem.h. Diese sieht folgendermaßen aus:</p>
<p>GLSystem.h</p>
<pre><code class="language-cpp">#ifndef GL_SYSTEM
#define GL_SYSTEM

#include &quot;GLWindow.h&quot;
#include &quot;GLObject.h&quot;
#include &quot;GLFlatObject.h&quot;
//#include &quot;GLVolObject.h&quot;
#include &quot;GLTime.h&quot;
#include &quot;GLInput.h&quot;
#include &quot;GLAudio.h&quot;
#include &quot;GLSound.h&quot;
#include &quot;GLMusic.h&quot;
#include &quot;GLBitFont.h&quot;
#include &quot;GLText.h&quot;
#include &quot;GLCam.h&quot;
#include &quot;GLCursor.h&quot;
#include &quot;GLInfo.h&quot;
#include &quot;GLChannel.h&quot;
#include &quot;GLKeyRepeat.h&quot;
#include &quot;GLStopper.h&quot;
#include &quot;GLNet.h&quot;
#include &quot;GLFlatAnimObject.h&quot;
#include &quot;GLAnimCursor.h&quot;
#include &quot;GLFlatCursor.h&quot;
#include &quot;GLPacket.h&quot;
#include &quot;GLBlockedID.h&quot;
#include &quot;GLMouseObject.h&quot;

#endif
</code></pre>
<p>GLMouseObject.h ist der letzte Headerfile in der Liste. Trotzdem scheint er sehr früh kompiliert zu werden. Nach der Fehlermeldung sind noch keine Objektdateien anderer Klassen gebildet worden.</p>
<p>Hier der Beginn der GLMouseObject.h:</p>
<pre><code class="language-cpp">#ifndef GL_MOUSEOBJECT
#define GL_MOUSEOBJECT

#include &quot;GLTime.h&quot;
#include &quot;GLCam.h&quot;
#include &quot;GLCursor.h&quot;

class GLObject;

class GLMouseObject
{
	public:
		GLMouseObject(GLCursor* cursor, GLCam* camera, GlObject* source = 0);
//etc.
	private:
		GlObject* Source;	//Quellobjekt, von dem Eigenschaften verwendet, wenn gesetzt ist.
//etc.
};

#endif
</code></pre>
<p>Hab schon GLObject.h inkludiert, wie hier dargestellt die Klasse GLObject am Beginn der Datei deklariert und auch schon beides auf einmal, aber der Fehler bleibt. Ich inkludiere GLMouseObject.h auch nicht in GLObject.h, hier nochmal GLObject.h:</p>
<pre><code class="language-cpp">#ifndef GL_OBJECT
#define GL_OBJECT

#include &lt;string&gt;
#define LINUX
#ifdef LINUX
#include &lt;SDL/SDL.h&gt;
#else
#include &lt;SDL.h&gt;
#endif
#include &quot;GLTime.h&quot;

class GLObject
{
	public:
		GLObject(GLTime* time);
//etc.
}

#endif
</code></pre>
<p>Mir fällt nichts mehr ein, was ich falsch gemacht haben kann. Weiß jemand Rat? Schonmal danke für's anschauen. <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/topic/294772/klasse-quot-has-not-been-declared-quot-fehler-finde-ursache-nicht-gelöst</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 18:11:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294772.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Nov 2011 09:50:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Klasse &amp;quot;has not been declared&amp;quot; Fehler - Finde Ursache nicht [gelöst] on Tue, 01 Nov 2011 12:47:04 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bin gerade in den letzten Zügen für eine eigene kleine Gameengine. Nun habe ich aber einen Fehler und alle Lösungsvorschläge von Google haben mir nicht geholfen. Hier die Fehlermeldung:</p>
<pre><code>In file included from GLSystem/GLSystem.h:27:0,
                 from main.cpp:15:
GLSystem/GLMouseObject.h: At global scope:
GLSystem/GLMouseObject.h:13:50: error: ‘GlObject’ has not been declared
</code></pre>
<p>main.cpp inkludiert in Zeile 15 halt einfach nur die GLSystem.h. Diese sieht folgendermaßen aus:</p>
<p>GLSystem.h</p>
<pre><code class="language-cpp">#ifndef GL_SYSTEM
#define GL_SYSTEM

#include &quot;GLWindow.h&quot;
#include &quot;GLObject.h&quot;
#include &quot;GLFlatObject.h&quot;
//#include &quot;GLVolObject.h&quot;
#include &quot;GLTime.h&quot;
#include &quot;GLInput.h&quot;
#include &quot;GLAudio.h&quot;
#include &quot;GLSound.h&quot;
#include &quot;GLMusic.h&quot;
#include &quot;GLBitFont.h&quot;
#include &quot;GLText.h&quot;
#include &quot;GLCam.h&quot;
#include &quot;GLCursor.h&quot;
#include &quot;GLInfo.h&quot;
#include &quot;GLChannel.h&quot;
#include &quot;GLKeyRepeat.h&quot;
#include &quot;GLStopper.h&quot;
#include &quot;GLNet.h&quot;
#include &quot;GLFlatAnimObject.h&quot;
#include &quot;GLAnimCursor.h&quot;
#include &quot;GLFlatCursor.h&quot;
#include &quot;GLPacket.h&quot;
#include &quot;GLBlockedID.h&quot;
#include &quot;GLMouseObject.h&quot;

#endif
</code></pre>
<p>GLMouseObject.h ist der letzte Headerfile in der Liste. Trotzdem scheint er sehr früh kompiliert zu werden. Nach der Fehlermeldung sind noch keine Objektdateien anderer Klassen gebildet worden.</p>
<p>Hier der Beginn der GLMouseObject.h:</p>
<pre><code class="language-cpp">#ifndef GL_MOUSEOBJECT
#define GL_MOUSEOBJECT

#include &quot;GLTime.h&quot;
#include &quot;GLCam.h&quot;
#include &quot;GLCursor.h&quot;

class GLObject;

class GLMouseObject
{
	public:
		GLMouseObject(GLCursor* cursor, GLCam* camera, GlObject* source = 0);
//etc.
	private:
		GlObject* Source;	//Quellobjekt, von dem Eigenschaften verwendet, wenn gesetzt ist.
//etc.
};

#endif
</code></pre>
<p>Hab schon GLObject.h inkludiert, wie hier dargestellt die Klasse GLObject am Beginn der Datei deklariert und auch schon beides auf einmal, aber der Fehler bleibt. Ich inkludiere GLMouseObject.h auch nicht in GLObject.h, hier nochmal GLObject.h:</p>
<pre><code class="language-cpp">#ifndef GL_OBJECT
#define GL_OBJECT

#include &lt;string&gt;
#define LINUX
#ifdef LINUX
#include &lt;SDL/SDL.h&gt;
#else
#include &lt;SDL.h&gt;
#endif
#include &quot;GLTime.h&quot;

class GLObject
{
	public:
		GLObject(GLTime* time);
//etc.
}

#endif
</code></pre>
<p>Mir fällt nichts mehr ein, was ich falsch gemacht haben kann. Weiß jemand Rat? Schonmal danke für's anschauen. <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/2138611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138611</guid><dc:creator><![CDATA[Little Programmer]]></dc:creator><pubDate>Tue, 01 Nov 2011 12:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to Klasse &amp;quot;has not been declared&amp;quot; Fehler - Finde Ursache nicht [gelöst] on Tue, 01 Nov 2011 09:54:34 GMT]]></title><description><![CDATA[<p>Achte auf Groß- und Kleinschreibung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138617</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 01 Nov 2011 09:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Klasse &amp;quot;has not been declared&amp;quot; Fehler - Finde Ursache nicht [gelöst] on Tue, 01 Nov 2011 12:46:04 GMT]]></title><description><![CDATA[<p>Hatte auf den Wortanfang und das O von Object geachtet, aber nicht auf das l. Danke, war echt dämlich der Fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138716</guid><dc:creator><![CDATA[Little Programmer]]></dc:creator><pubDate>Tue, 01 Nov 2011 12:46:04 GMT</pubDate></item></channel></rss>