<?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[Undefined Reference to class::class]]></title><description><![CDATA[<p>Ich komm irgendwie nicht auf den Konstruktor oder so, keine Ahnung wieso das nicht gefunden wird. Bin für jede Hilfe dankbar.</p>
<p>Fehlermeldung:</p>
<pre><code>/tmp/ccwpT6zY.o: In function `main':
/home/xatrixx/Desktop/Programmierung/Turrican/./main.cc:10: undefined reference to `turrican::turrican()'
collect2: ld returned 1 exit status
</code></pre>
<p><a href="http://main.cc" rel="nofollow">main.cc</a></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;turrican.h&quot;

using namespace std;

int main(int ac, char **av)
{

turrican t;

return 0;
}
</code></pre>
<p>turrican.h</p>
<pre><code class="language-cpp">#ifndef _TURRICAN_
#define _TURRICAN_

#define X 800
#define Y 600

class turrican
{

	public:
	turrican();
	turrican(int xcoord, int ycoord);
	void move_left();
	void move_right();
	void jump();
	void shoot();
	void take();
	void transform();
	void damage();
	void die();

	private:
	int x; //X Position
	int y; //Y Position
	int position[X][Y]; //Array of Position
	int shoottype; // Schusstypen: 0 = Standard
	int status; //0=lebt, 1=rad, 2=tot

};

#endif
</code></pre>
<p><a href="http://turrican.cc" rel="nofollow">turrican.cc</a></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;turrican.h&quot;

turrican::turrican()
{
x=X/2;
y=Y/2;
shoottype=0;
status=0;
}

turrican::turrican(int xcoord, int ycoord)
{
x=xcoord;
y=ycoord;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/203845/undefined-reference-to-class-class</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 22:02:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203845.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Jan 2008 11:38:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Undefined Reference to class::class on Sun, 27 Jan 2008 11:38:27 GMT]]></title><description><![CDATA[<p>Ich komm irgendwie nicht auf den Konstruktor oder so, keine Ahnung wieso das nicht gefunden wird. Bin für jede Hilfe dankbar.</p>
<p>Fehlermeldung:</p>
<pre><code>/tmp/ccwpT6zY.o: In function `main':
/home/xatrixx/Desktop/Programmierung/Turrican/./main.cc:10: undefined reference to `turrican::turrican()'
collect2: ld returned 1 exit status
</code></pre>
<p><a href="http://main.cc" rel="nofollow">main.cc</a></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;turrican.h&quot;

using namespace std;

int main(int ac, char **av)
{

turrican t;

return 0;
}
</code></pre>
<p>turrican.h</p>
<pre><code class="language-cpp">#ifndef _TURRICAN_
#define _TURRICAN_

#define X 800
#define Y 600

class turrican
{

	public:
	turrican();
	turrican(int xcoord, int ycoord);
	void move_left();
	void move_right();
	void jump();
	void shoot();
	void take();
	void transform();
	void damage();
	void die();

	private:
	int x; //X Position
	int y; //Y Position
	int position[X][Y]; //Array of Position
	int shoottype; // Schusstypen: 0 = Standard
	int status; //0=lebt, 1=rad, 2=tot

};

#endif
</code></pre>
<p><a href="http://turrican.cc" rel="nofollow">turrican.cc</a></p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;turrican.h&quot;

turrican::turrican()
{
x=X/2;
y=Y/2;
shoottype=0;
status=0;
}

turrican::turrican(int xcoord, int ycoord)
{
x=xcoord;
y=ycoord;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1444412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444412</guid><dc:creator><![CDATA[XaTrIxX]]></dc:creator><pubDate>Sun, 27 Jan 2008 11:38:27 GMT</pubDate></item><item><title><![CDATA[Reply to Undefined Reference to class::class on Sun, 27 Jan 2008 11:46:19 GMT]]></title><description><![CDATA[<p>Hast du Turrican.cpp nicht mitgelinkt?</p>
<pre><code class="language-cpp">#if !defined(TURRICAN_HPP__INCLUDED)
#define TURRICAN_HPP__INCLUDED

#if (_MSC_VER &gt;= 1300)
#pramga once
#endif // (_MSC_VER &gt;= 1300)

class turrican
{
    enum shoottype { normal = 0 } m_shoottype;
    int m_x;
    int m_y;
    enum state { alive, rad, dead } m_state;

public:
    turrican(int x = 400, int y = 300)
        : m_x(x), m_y(y), m_shoottype(normal), m_state(alive)
    {}

public:
    void move_left();
    void move_right();
    void jump();
    void shoot();
    void take();
    void transform();
    void damage();
    void die();
};

#endif // TURRICAN_HPP__INCLUDED
</code></pre>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;Turrican.hpp&quot;

int main()
{
    turrican inst;
}
</code></pre>
<p>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444420</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 27 Jan 2008 11:46:19 GMT</pubDate></item><item><title><![CDATA[Reply to Undefined Reference to class::class on Sun, 27 Jan 2008 11:51:32 GMT]]></title><description><![CDATA[<p>Keine Ahnung was du meinst, das Programm übersetz ich mit:</p>
<p>g++ -o main -Wall -g ./main.cc</p>
<p>Wenn ich in der main turrican.h include, müsst das doch reichen, oder nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444422</guid><dc:creator><![CDATA[XaTrIxX]]></dc:creator><pubDate>Sun, 27 Jan 2008 11:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to Undefined Reference to class::class on Sun, 27 Jan 2008 11:53:29 GMT]]></title><description><![CDATA[<p>Du musst noch <a href="http://turrican.cc" rel="nofollow">turrican.cc</a> dazulinken:</p>
<blockquote>
<p>g++ -o main -Wall -g ./main.cc ./turrican.cc</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1444423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444423</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Sun, 27 Jan 2008 11:53:29 GMT</pubDate></item></channel></rss>