<?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[Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot;]]></title><description><![CDATA[<p>ich hab beim schreiben eins Progs mit mehreren Formen für jede eine Unit erstellt. Ich erhalte jedoch folgende Warnung:</p>
<pre><code>[Linker Warnung] Public symbol '_fmCreateWarparty' defined in both module
C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\OPERATION GALAHAD\MAIN.OBJ
and C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\OPERATION GALAHAD\PREPARATION_WARPARTY.OBJ
</code></pre>
<p>Dies erhalte ich für ALLE Formen. Ich hab mich mal in der main.h umgeschaut aber nichts gefunden was mir irgendwie seltsam vorkam.<br />
Ich finde keine doppelte definition.<br />
Liegt es vielleicht daran das ich im HEAD die cpp included hab?<br />
Mir ist übrigens aufgefallen das immer die MAIN.obj erwähnt wird.</p>
<p>main.h</p>
<pre><code class="language-cpp">#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;Menus.hpp&gt;
#include &quot;scanreport.cpp&quot;
#include &quot;preparation_warparty.cpp&quot;
#include &quot;preparation_lance.cpp&quot;
#include &quot;preparation_battalion.cpp&quot;
#include &quot;preparation_regiment.cpp&quot;
</code></pre>
<p>Unter public: hab ich nur folgendes:</p>
<pre><code class="language-cpp">public:		// Anwender-Deklarationen
        __fastcall TfmStart(TComponent* Owner);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/115840/fehlermeldung-genauer-erklären-quot-defined-in-both-module-quot</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 16:44:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/115840.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jul 2005 15:20:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:22:59 GMT]]></title><description><![CDATA[<p>ich hab beim schreiben eins Progs mit mehreren Formen für jede eine Unit erstellt. Ich erhalte jedoch folgende Warnung:</p>
<pre><code>[Linker Warnung] Public symbol '_fmCreateWarparty' defined in both module
C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\OPERATION GALAHAD\MAIN.OBJ
and C:\PROGRAMME\BORLAND\CBUILDER6\PROJECTS\OPERATION GALAHAD\PREPARATION_WARPARTY.OBJ
</code></pre>
<p>Dies erhalte ich für ALLE Formen. Ich hab mich mal in der main.h umgeschaut aber nichts gefunden was mir irgendwie seltsam vorkam.<br />
Ich finde keine doppelte definition.<br />
Liegt es vielleicht daran das ich im HEAD die cpp included hab?<br />
Mir ist übrigens aufgefallen das immer die MAIN.obj erwähnt wird.</p>
<p>main.h</p>
<pre><code class="language-cpp">#include &lt;Classes.hpp&gt;
#include &lt;Controls.hpp&gt;
#include &lt;StdCtrls.hpp&gt;
#include &lt;Forms.hpp&gt;
#include &lt;Menus.hpp&gt;
#include &quot;scanreport.cpp&quot;
#include &quot;preparation_warparty.cpp&quot;
#include &quot;preparation_lance.cpp&quot;
#include &quot;preparation_battalion.cpp&quot;
#include &quot;preparation_regiment.cpp&quot;
</code></pre>
<p>Unter public: hab ich nur folgendes:</p>
<pre><code class="language-cpp">public:		// Anwender-Deklarationen
        __fastcall TfmStart(TComponent* Owner);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/834456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834456</guid><dc:creator><![CDATA[Croatiancow]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:25:39 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Hast du mal nachgeschaut wo fmCreateWarparty deklariert wird?<br />
Im übrigen sollte man niemals cpp-Dateien inkludieren. Warum hast du das überhaupt gemacht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834463</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834463</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:25:39 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:44:41 GMT]]></title><description><![CDATA[<p>Die Class ist in der Heahder von TfmCreateWarparty deklariert. Dies geschah ja eh automatisch durch die IDE. Wenn ich die .cpp nicht include kann ich aber nicht auf meine übrigen Formen und ihre Elemente zugreifen. Ich hab das bis jetzt immer so gemacht.<br />
Aber bin ja Schüler und würd gerne Tipps erhalten. <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/834478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834478</guid><dc:creator><![CDATA[Croatiancow]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:44:41 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:45:31 GMT]]></title><description><![CDATA[<p>Die cpp Datei in das Projekt mit aufnehmen, nicht includen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834480</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:49:59 GMT]]></title><description><![CDATA[<p>ja das hab ich ja uch gemacht. Schön brav über &quot;dem Projekt hinzufügen&quot; . trotzdem hab ich anscheinend was falsch gemacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834485</guid><dc:creator><![CDATA[Croatiancow]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:49:59 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:55:12 GMT]]></title><description><![CDATA[<p>Wenn du die cpps dem Projekt hinzugefügt hast und die notwendigen Header inkludiert hast sollte alles funktionieren. Mach es einfach mal so.<br />
Wenn es dann Probleme gibt kannst du uns ja mal die Fehlermeldungen mitteilen. So wie du es jetzt machst wundert es nicht, dass Symbole mehrfach in den Übersetzungseinheiten auftauchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834487</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:55:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung genauer erklären &amp;quot;defined in both module&amp;quot; on Tue, 19 Jul 2005 15:59:57 GMT]]></title><description><![CDATA[<p>Ok ihr hatte recht. An alle N00bs die es so wie ich gemacht haben:</p>
<p>.cpp NIE NIE NIE direkt includen. IMMER die &quot;Dem Projekt Hinzufügen&quot; Option verwenden. Danach müsst ihr NUR die Header includen. Das wars.</p>
<p>Danke für eure Hilfe.</p>
<p>Bahala NA!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/834488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/834488</guid><dc:creator><![CDATA[Croatiancow]]></dc:creator><pubDate>Tue, 19 Jul 2005 15:59:57 GMT</pubDate></item></channel></rss>