<?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[nicht aufgelöstes externes Symbol]]></title><description><![CDATA[<p>morge</p>
<pre><code class="language-cpp">class Account
{
public:
	void applyint() { amount += amount * interestRate; }
	static double rate() { return interestRate; }
	static void rate(double);
private:
	std::string owner;
	double amount;
	static double interestRate; /* HIER DER FELHER */
	static double initRate();
};
</code></pre>
<p>es gibt folgende fehler=</p>
<pre><code class="language-cpp">1&gt;main.obj : error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;private: static double Account::interestRate&quot; (?interestRate@Account@@0NA)&quot;.
1&gt;main.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
</code></pre>
<p>wieso?<br />
MFG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201152/nicht-aufgelöstes-externes-symbol</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 16:00:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201152.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Dec 2007 14:10:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to nicht aufgelöstes externes Symbol on Tue, 25 Dec 2007 14:10:07 GMT]]></title><description><![CDATA[<p>morge</p>
<pre><code class="language-cpp">class Account
{
public:
	void applyint() { amount += amount * interestRate; }
	static double rate() { return interestRate; }
	static void rate(double);
private:
	std::string owner;
	double amount;
	static double interestRate; /* HIER DER FELHER */
	static double initRate();
};
</code></pre>
<p>es gibt folgende fehler=</p>
<pre><code class="language-cpp">1&gt;main.obj : error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;private: static double Account::interestRate&quot; (?interestRate@Account@@0NA)&quot;.
1&gt;main.exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
</code></pre>
<p>wieso?<br />
MFG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425907</guid><dc:creator><![CDATA[HC_Quatro]]></dc:creator><pubDate>Tue, 25 Dec 2007 14:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to nicht aufgelöstes externes Symbol on Tue, 25 Dec 2007 14:40:58 GMT]]></title><description><![CDATA[<p>Statische Vars müssen ausshalb der Klasse nochmal aufgeführt (instanziert?) werden:</p>
<p>im .cpp file:</p>
<pre><code class="language-cpp">double Account::interestRate;
</code></pre>
<p>rya.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425940</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 25 Dec 2007 14:40:58 GMT</pubDate></item></channel></rss>