<?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[Was bedeutet &#x2F;FORCE:MULTIPLE]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe mir gestern eine Bibliothek namens wykobi runtergeladen und nach einigen Startprobleme, die schon in einem anderen Thread besprochen wurden, hatte ich am Ende nur noch solche Linkerfehler:</p>
<blockquote>
<p>MyGeometrie.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrie.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrie.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
fatal error LNK1169: one or more multiply defined symbols found</p>
</blockquote>
<p>Zu der Bibliothek gehören aber kein lib oder dllD-Dateien, sondern nur Header und inline Dateien. Ich ahbe diese alle in den gleichen Ordner entpackt und diesen Ordner VS05 bekannt gemacht. Dann habe ich einfach wykobi.hpp inkludiert und es folgen diese Fehler. Der Hersteller meinte dazu, dass ich es mit folgender Linkeroption (/FORCE:MULTIPLE) zu probieren. Damit kompiliert das Programm aber es folgen Warnungen:</p>
<blockquote>
<p>Warning 1 warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification MyGeometrie<br />
Warning 2 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 3 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 4 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 5 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 6 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 7 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 8 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 9 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 10 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 11 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 12 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 13 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 14 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 15 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 16 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 17 warning LNK4088: image being generated due to /FORCE option; image may not run</p>
</blockquote>
<p>Jetzt habe ich mehrer Fragen: Was bedeute diese Warnungen genau? Was bewirkt /FORCE:MULTIPLE? Gibt es eine Möglichkeit das Problem eleganter zu lösen?</p>
<p>Vielen Dank</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181014/was-bedeutet-force-multiple</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 01:18:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181014.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2007 09:11:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 09:11:33 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe mir gestern eine Bibliothek namens wykobi runtergeladen und nach einigen Startprobleme, die schon in einem anderen Thread besprochen wurden, hatte ich am Ende nur noch solche Linkerfehler:</p>
<blockquote>
<p>MyGeometrie.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrie.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrie.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieDoc.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
MyGeometrieView.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
Point.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj<br />
Triangel.obj : error LNK2005: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj<br />
fatal error LNK1169: one or more multiply defined symbols found</p>
</blockquote>
<p>Zu der Bibliothek gehören aber kein lib oder dllD-Dateien, sondern nur Header und inline Dateien. Ich ahbe diese alle in den gleichen Ordner entpackt und diesen Ordner VS05 bekannt gemacht. Dann habe ich einfach wykobi.hpp inkludiert und es folgen diese Fehler. Der Hersteller meinte dazu, dass ich es mit folgender Linkeroption (/FORCE:MULTIPLE) zu probieren. Damit kompiliert das Programm aber es folgen Warnungen:</p>
<blockquote>
<p>Warning 1 warning LNK4075: ignoring '/INCREMENTAL' due to '/FORCE' specification MyGeometrie<br />
Warning 2 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 3 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 4 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrie.obj<br />
Warning 5 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 6 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 7 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieDoc.obj<br />
Warning 8 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 9 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 10 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored MyGeometrieView.obj<br />
Warning 11 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 12 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 13 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Point.obj<br />
Warning 14 warning LNK4006: &quot;double * wykobi::sin_table&quot; (?sin_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 15 warning LNK4006: &quot;double * wykobi::cos_table&quot; (?cos_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 16 warning LNK4006: &quot;double * wykobi::tan_table&quot; (?tan_table@wykobi@@3PANA) already defined in Line.obj; second definition ignored Triangel.obj<br />
Warning 17 warning LNK4088: image being generated due to /FORCE option; image may not run</p>
</blockquote>
<p>Jetzt habe ich mehrer Fragen: Was bedeute diese Warnungen genau? Was bewirkt /FORCE:MULTIPLE? Gibt es eine Möglichkeit das Problem eleganter zu lösen?</p>
<p>Vielen Dank</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281389</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 09 May 2007 09:11:33 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 09:15:49 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/70abkas3(vs.80).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/70abkas3(vs.80).aspx</a></p>
<p>sin_,cos_ und tan_table sind anscheinend mehrfach definiert und mit dem /FORCE wird einfach die 1. Definition genommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281392</guid><dc:creator><![CDATA[Konrad]]></dc:creator><pubDate>Wed, 09 May 2007 09:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 10:21:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Gibt es andere Möglichkeit die Fehler zu verhindern? Diese Linkerfehler machen mich wirklich immer fertig. <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>
<p>Line und Point sind Klassen von mir.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281441</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 09 May 2007 10:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 10:41:10 GMT]]></title><description><![CDATA[<p>Du mußt (und darfst) die Funktions<strong>definitionen</strong> nur einmal in deinem Projekt eingebunden haben, sonst beschwert sich der Linker. Das bedeutet, daß du nur die Header einbinden mußt und die dazugehörige .CPP &quot;nur&quot; in dein Projekt einbinden mußt (damit sie mit compiliert wird, wenn du das Programm erstellst).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281464</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 09 May 2007 10:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 10:46:21 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Da gibt es keine cpp-Dateien, sondern nur inline-Dateien, die sich im selben, der IDE bekannten, Ordner befinden. Ich habe keine Datei des Projekt hinzugefügt.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281468</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 09 May 2007 10:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to Was bedeutet &#x2F;FORCE:MULTIPLE on Wed, 09 May 2007 10:49:51 GMT]]></title><description><![CDATA[<p>chrische5 schrieb:</p>
<blockquote>
<p>Gibt es andere Möglichkeit die Fehler zu verhindern? Diese Linkerfehler machen mich wirklich immer fertig. <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>
</blockquote>
<p>die verschiedenen source files haben anscheinend ihre eigene sin/cos/tan table. du hast mehrere möglichkeiten:<br />
1. schreibe vor jede table ein 'static', dann gilt die nur innerhalb des files, in dem sie definiert wurde.<br />
2. ersetze duplikate durch 'extern typ name;' (beispiel: extern char sin_table[];)</p>
<p>...aber (ganz wichtig) achte darauf, dass die tables sich nicht in ihrem inhalt unterscheiden.<br />
<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/1281469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281469</guid><dc:creator><![CDATA[pale dog]]></dc:creator><pubDate>Wed, 09 May 2007 10:49:51 GMT</pubDate></item></channel></rss>