<?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[linken]]></title><description><![CDATA[<p>ich include in 2 cpp`s eine klasse -&gt; dann hab ich einen erro beim linken</p>
<p>Dlg_Optionen.obj : error LNK2005: &quot;public: void __thiscall CSave::save(class ATL::CStringT&lt;char,class StrTraitMFC&lt;char,class ATL::ChTraitsCRT&lt;char&gt; &gt; &gt;)&quot; (?save@CSave@@QAEXV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>C</mi><mi>S</mi><mi>t</mi><mi>r</mi><mi>i</mi><mi>n</mi><mi>g</mi><mi>T</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">CStringT@DV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.07153em;">C</span><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit" style="margin-right:0.13889em;">T</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) already defined in AIDEDlg.obj</p>
<p>dann müsste die klasse ja schon bekannt sein und ich könnte ohne ein 2tes include<br />
wieder objekte anlegen -&gt; dachte ich, aber dann ist die klasse noch nicht bekannt</p>
<p>versteh ich nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/123428/linken</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 13:10:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123428.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 16 Oct 2005 20:23:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to linken on Sun, 16 Oct 2005 20:23:16 GMT]]></title><description><![CDATA[<p>ich include in 2 cpp`s eine klasse -&gt; dann hab ich einen erro beim linken</p>
<p>Dlg_Optionen.obj : error LNK2005: &quot;public: void __thiscall CSave::save(class ATL::CStringT&lt;char,class StrTraitMFC&lt;char,class ATL::ChTraitsCRT&lt;char&gt; &gt; &gt;)&quot; (?save@CSave@@QAEXV?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>C</mi><mi>S</mi><mi>t</mi><mi>r</mi><mi>i</mi><mi>n</mi><mi>g</mi><mi>T</mi><mi mathvariant="normal">@</mi><mi>D</mi><mi>V</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">CStringT@DV?</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.69444em;"></span><span class="strut bottom" style="height:0.8888799999999999em;vertical-align:-0.19444em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.07153em;">C</span><span class="mord mathit" style="margin-right:0.05764em;">S</span><span class="mord mathit">t</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit" style="margin-right:0.13889em;">T</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.02778em;">D</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mclose">?</span></span></span></span>StrTraitMFC@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z) already defined in AIDEDlg.obj</p>
<p>dann müsste die klasse ja schon bekannt sein und ich könnte ohne ein 2tes include<br />
wieder objekte anlegen -&gt; dachte ich, aber dann ist die klasse noch nicht bekannt</p>
<p>versteh ich nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893744</guid><dc:creator><![CDATA[golden_jubilee]]></dc:creator><pubDate>Sun, 16 Oct 2005 20:23:16 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Sun, 16 Oct 2005 22:10:09 GMT]]></title><description><![CDATA[<p>hi!<br />
bin leider noch nicht so weit übers anfängerstadium hinaus. von daher weiss ich nicht, ob ich dir helfen kann..</p>
<p>hab auch öfter probleme mit der ganzen includiererei.<br />
ich komm aber meistens irgendwie klar, indem ich folgende regeln beachte:</p>
<p>für jede klasse genau eine .h datei und eine .cpp datei (.h deklaration und .cpp implementation..)</p>
<p>include wächter verwenden!</p>
<p>die .cpp includiert nur die zugehörige .h datei.</p>
<p>das klappt fast immer ausser manchmal bei über kreuz includieren.<br />
(klasse A includiert klasse B und B includiert A)</p>
<p>irgendwann muss ich dazu auch noch mal was fragen... <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/893781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893781</guid><dc:creator><![CDATA[prokaion]]></dc:creator><pubDate>Sun, 16 Oct 2005 22:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 00:25:51 GMT]]></title><description><![CDATA[<p>das ist kein compilerfehelr(der code ist also korrekt) sondern ein linkerfehler, der besagt, dass du CSave::Save 2x implementiert hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893798</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 17 Oct 2005 00:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 06:06:22 GMT]]></title><description><![CDATA[<p>oder daß die Funktion 2 Mal im Projekt eingebunden wurde und kein Guard existiert der das abfängt!?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893833</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893833</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Mon, 17 Oct 2005 06:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 06:20:05 GMT]]></title><description><![CDATA[<p>otze schrieb:</p>
<blockquote>
<p>das ist kein compilerfehelr(der code ist also korrekt) sondern ein linkerfehler, der besagt, dass du CSave::Save 2x implementiert hast.</p>
</blockquote>
<p>Dann ist es ja doch ein Fehler im Code...</p>
<p>Bye, TGGC (<a href="http://tggc.tg.funpic.de/index.php?cat=4" rel="nofollow">Demo or Die</a>)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/893836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/893836</guid><dc:creator><![CDATA[TGGC]]></dc:creator><pubDate>Mon, 17 Oct 2005 06:20:05 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 10:35:18 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// AIDEDlg.cpp : Implementierungsdatei
//
#pragma once

#include &quot;stdafx.h&quot;
#include &quot;AIDE.h&quot;
#include &quot;AIDEDlg.h&quot;
#include &quot;.\aidedlg.h&quot;

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

#include &quot;CColour.h&quot;
#include &quot;CSave.h&quot;
#include &quot;COpen.h&quot;
#include &quot;CMenue.h&quot;
#include &quot;Dlg_Optionen.h&quot;
#include &quot;Dlg_Info.h&quot;
</code></pre>
<p>und</p>
<pre><code class="language-cpp">// Dlg_Optionen.cpp : Implementierungsdatei
//
#pragma once

#include &quot;stdafx.h&quot;
#include &quot;AIDE.h&quot;
#include &quot;Dlg_Optionen.h&quot;
#include &quot;.\dlg_optionen.h&quot;

#include &quot;CMyFileDialog.h&quot;

#include &quot;CSave.h&quot;
</code></pre>
<p>wie soll ich es anders lösen wenn ich in beiden die Klasse CSave benutzen möchte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/894004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/894004</guid><dc:creator><![CDATA[golden_jubilee]]></dc:creator><pubDate>Mon, 17 Oct 2005 10:35:18 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 10:41:18 GMT]]></title><description><![CDATA[<p>das müsste eigentlich so gehen...<br />
hast du CSave::Save in beiden .cpp-dateien iumplementiert?<br />
Hast du CSave::Save im Header CSave.h implementiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/894007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/894007</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Mon, 17 Oct 2005 10:41:18 GMT</pubDate></item><item><title><![CDATA[Reply to linken on Mon, 17 Oct 2005 12:49:41 GMT]]></title><description><![CDATA[<p>hast du vielleicht folgendes vergessen?</p>
<p>blub.h</p>
<pre><code class="language-cpp">//vor dem ifndef sollten max komentare stehn
#ifndef BLUB_H
#define BLUB_H

definitionen();

#endif
//nach dem endif sollte auch nichts stehn..
</code></pre>
<p>danach sollte es keine probs mehr geben..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/894100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/894100</guid><dc:creator><![CDATA[aMan]]></dc:creator><pubDate>Mon, 17 Oct 2005 12:49:41 GMT</pubDate></item></channel></rss>