<?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[error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition]]></title><description><![CDATA[<p>Hi.</p>
<p>Ich habe eine Frage zu dem Code weiter unten. Warum bekomme ich, wenn der Code so ist wie dargelegt, diese Fehlermeldung:</p>
<blockquote>
<p>1&gt;Test.obj : error LNK2001: unresolved external symbol &quot;public: __thiscall cRGB24Pixel::~cRGB24Pixel(void)&quot; (??1cRGB24Pixel@@QAE@XZ)<br />
1&gt;Test.obj : error LNK2001: unresolved external symbol &quot;public: __thiscall cRGB24Pixel::cRGB24Pixel(void)&quot; (??0cRGB24Pixel@@QAE@X</p>
</blockquote>
<p>Wenn ich dagegen aus der Variable &quot;cTest&quot; einen Pointer mache (cRGB24Pixel *pcTest), dann kompiliert es. Wäre schön, wenn mir jemand weiterhilft.</p>
<p>Danke!<br />
V.K.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;

#ifndef CRGB24PIXEL
#define CRGB24PIXEL
#pragma once
class cRGB24Pixel
{
public:
  cRGB24Pixel(void);
  ~cRGB24Pixel(void);
  int b;
  int g;
  int r;
};
#endif

#include &lt;fstream&gt;
#include &lt;sstream&gt;
int main ()
{ 
  cRGB24Pixel cTest;
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/235355/error-lnk2001-unresolved-external-symbol-gt-bei-normaler-klassendefinition</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 05:42:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235355.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Feb 2009 21:02:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition on Sat, 28 Feb 2009 21:02:01 GMT]]></title><description><![CDATA[<p>Hi.</p>
<p>Ich habe eine Frage zu dem Code weiter unten. Warum bekomme ich, wenn der Code so ist wie dargelegt, diese Fehlermeldung:</p>
<blockquote>
<p>1&gt;Test.obj : error LNK2001: unresolved external symbol &quot;public: __thiscall cRGB24Pixel::~cRGB24Pixel(void)&quot; (??1cRGB24Pixel@@QAE@XZ)<br />
1&gt;Test.obj : error LNK2001: unresolved external symbol &quot;public: __thiscall cRGB24Pixel::cRGB24Pixel(void)&quot; (??0cRGB24Pixel@@QAE@X</p>
</blockquote>
<p>Wenn ich dagegen aus der Variable &quot;cTest&quot; einen Pointer mache (cRGB24Pixel *pcTest), dann kompiliert es. Wäre schön, wenn mir jemand weiterhilft.</p>
<p>Danke!<br />
V.K.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;

#ifndef CRGB24PIXEL
#define CRGB24PIXEL
#pragma once
class cRGB24Pixel
{
public:
  cRGB24Pixel(void);
  ~cRGB24Pixel(void);
  int b;
  int g;
  int r;
};
#endif

#include &lt;fstream&gt;
#include &lt;sstream&gt;
int main ()
{ 
  cRGB24Pixel cTest;
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1672169</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1672169</guid><dc:creator><![CDATA[VerbalKint]]></dc:creator><pubDate>Sat, 28 Feb 2009 21:02:01 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition on Sat, 28 Feb 2009 21:15:58 GMT]]></title><description><![CDATA[<p>VerbalKint schrieb:</p>
<blockquote>
<p>Wenn ich dagegen aus der Variable &quot;cTest&quot; einen Pointer mache (cRGB24Pixel *pcTest), dann kompiliert es. Wäre schön, wenn mir jemand weiterhilft.</p>
</blockquote>
<p>Ist für mich auch logisch - du hast eben CTor und DTor nicht definiert, sondern nur deklariert...</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1672172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1672172</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sat, 28 Feb 2009 21:15:58 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition on Sat, 28 Feb 2009 21:18:25 GMT]]></title><description><![CDATA[<p>Danke dir, ist mir leider entgangen!<br />
V.K.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1672173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1672173</guid><dc:creator><![CDATA[VerbalKint]]></dc:creator><pubDate>Sat, 28 Feb 2009 21:18:25 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition on Sat, 28 Feb 2009 21:20:47 GMT]]></title><description><![CDATA[<p>Du hast vergessen deinen (De-)Constructor zu definieren. Ändere den Code wie folgt:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;conio.h&gt;

#ifndef CRGB24PIXEL
#define CRGB24PIXEL
#pragma once
class cRGB24Pixel
{
public:
  cRGB24Pixel(void);
  ~cRGB24Pixel(void);
  int b;
  int g;
  int r;
};

cRGB24Pixel::cRGB24Pixel()
{
 // Constructor code
}

cRGB24Pixel::~cRGB24Pixel()
{
 // Deconstructor code
}
#endif

#include &lt;fstream&gt;
#include &lt;sstream&gt;
int main ()
{
  cRGB24Pixel cTest;
  return 0;
}
</code></pre>
<p>MfG WilMen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1672175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1672175</guid><dc:creator><![CDATA[WilMen]]></dc:creator><pubDate>Sat, 28 Feb 2009 21:20:47 GMT</pubDate></item><item><title><![CDATA[Reply to error LNK2001: unresolved external symbol -&amp;gt; Bei normaler Klassendefinition on Sun, 01 Mar 2009 11:55:07 GMT]]></title><description><![CDATA[<p>WilMen schrieb:</p>
<blockquote>
<p>Du hast vergessen deinen (De-)Constructor zu definieren</p>
</blockquote>
<p>Das Ding heisst Destructor und auf Deutsch Destruktor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1672322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1672322</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 01 Mar 2009 11:55:07 GMT</pubDate></item></channel></rss>