<?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[Statische Bibliothek einbinden.]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich würde gern mal wissen, wie man eine statische Bibliothek richtig in ein Projekt einbindet. Ich habe eine statische Bibliothek geschrieben, die die Klassen A,B unc C enthält. Außerdem gibt es ein File MyStaticLib.h, das wie folgt aussieht:</p>
<pre><code class="language-cpp">#include &quot;A.h&quot;
#include &quot;B.h&quot;
#include &quot;C.h&quot;
</code></pre>
<p>Das ganze habe ich als statische Bibliothek übersetzt - klappt. Jetzt will ich in einem anderen Projekt diese Statische Bibliothek einbinden, wie mache ich das? Irgendwo kommt</p>
<pre><code class="language-cpp">#include &quot;MyStaticLib.h&quot;
</code></pre>
<p>aber dann gibt es Linker-Fehler ... welche Settings muß ich noch vornehmen? Als Info noch: MS VC++ 6.0!</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80331/statische-bibliothek-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 06:12:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80331.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jul 2004 11:08:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Statische Bibliothek einbinden. on Tue, 20 Jul 2004 11:08:31 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich würde gern mal wissen, wie man eine statische Bibliothek richtig in ein Projekt einbindet. Ich habe eine statische Bibliothek geschrieben, die die Klassen A,B unc C enthält. Außerdem gibt es ein File MyStaticLib.h, das wie folgt aussieht:</p>
<pre><code class="language-cpp">#include &quot;A.h&quot;
#include &quot;B.h&quot;
#include &quot;C.h&quot;
</code></pre>
<p>Das ganze habe ich als statische Bibliothek übersetzt - klappt. Jetzt will ich in einem anderen Projekt diese Statische Bibliothek einbinden, wie mache ich das? Irgendwo kommt</p>
<pre><code class="language-cpp">#include &quot;MyStaticLib.h&quot;
</code></pre>
<p>aber dann gibt es Linker-Fehler ... welche Settings muß ich noch vornehmen? Als Info noch: MS VC++ 6.0!</p>
<p>Vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564340</guid><dc:creator><![CDATA[LAOES]]></dc:creator><pubDate>Tue, 20 Jul 2004 11:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Statische Bibliothek einbinden. on Tue, 20 Jul 2004 11:25:29 GMT]]></title><description><![CDATA[<p>Eins noch. Die typischen Fehlermeldungen des Linkers sehen wie folgt aus:</p>
<p>Linking...<br />
libcpmt.lib(xlock.obj) : error LNK2005: &quot;public: __thiscall std::_Lockit::~_Lockit(void)&quot; (??1_Lockit@std@@QAE@XZ) already defined in Laplagllib.lib(AnalysisList-AnalysisList.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in LIBCMT.lib(crt0dat.obj)<br />
LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in LIBCMT.lib(crt0dat.obj)</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> Was mache ich hier denn falsch? Die Bibliothek LIBC interessiert mich doch gar nicht ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564351</guid><dc:creator><![CDATA[LAOES]]></dc:creator><pubDate>Tue, 20 Jul 2004 11:25:29 GMT</pubDate></item><item><title><![CDATA[Reply to Statische Bibliothek einbinden. on Thu, 22 Jul 2004 15:30:06 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich tippe auf diesen Grund</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>Der häufigste Grund für diesen Fehler ist das versehentlich gleichzeitige Binden mit den Single-Threaded- und Multithreaded-Bibliotheken. Stellen Sie sicher, daß die Anwendungsprojektdatei nur geeignete Bibliotheken einbezieht und Bibliotheken von Fremdanbietern über entsprechend erstellte Single-Threaded- oder Multithreaded-Versionen verfügen.</p>
</blockquote>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566209</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Thu, 22 Jul 2004 15:30:06 GMT</pubDate></item></channel></rss>