<?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 lib vs dll]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich hätte mal eine Frage bezüglich Bibliotheken und deren Verwendung in einem Projekt. Wann ist es sinnvoll die Bibliothek statisch einzubinden und wann die dynamische (dll)? Wie trefft ihr da eure Entscheidungenß Kann das vielleicht mal jemand mit einem konkreten Anwendungsfall zu beschreiben? Das wäre super nett!!</p>
<p>Vielen Dank<br />
Melanie</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/254489/statische-lib-vs-dll</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 18:18:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/254489.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Nov 2009 07:28:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 07:28:09 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich hätte mal eine Frage bezüglich Bibliotheken und deren Verwendung in einem Projekt. Wann ist es sinnvoll die Bibliothek statisch einzubinden und wann die dynamische (dll)? Wie trefft ihr da eure Entscheidungenß Kann das vielleicht mal jemand mit einem konkreten Anwendungsfall zu beschreiben? Das wäre super nett!!</p>
<p>Vielen Dank<br />
Melanie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809167</guid><dc:creator><![CDATA[Melli]]></dc:creator><pubDate>Tue, 17 Nov 2009 07:28:09 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 08:15:42 GMT]]></title><description><![CDATA[<p>DLLs sind gut, wenn Du z.B. ein Plugin System hast bei dem eine DLL ein Plugin representiert. Oder wenn Du die DLL, z.B. zu update Zwecken, austauschen können möchtest.</p>
<p>Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809187</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Tue, 17 Nov 2009 08:15:42 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 08:35:39 GMT]]></title><description><![CDATA[<p>plus, wenn die DLL von mehreren Applikationen gleichzeitig genutzt werden soll. Dann muss aber auf Thread-Safeness geachtet werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809195</guid><dc:creator><![CDATA[gastgast]]></dc:creator><pubDate>Tue, 17 Nov 2009 08:35:39 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 09:39:54 GMT]]></title><description><![CDATA[<p>gastgast schrieb:</p>
<blockquote>
<p>plus, wenn die DLL von mehreren Applikationen gleichzeitig genutzt werden soll. Dann muss aber auf Thread-Safeness geachtet werden.</p>
</blockquote>
<p>Schwachsinn.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809221</guid><dc:creator><![CDATA[loks]]></dc:creator><pubDate>Tue, 17 Nov 2009 09:39:54 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 09:54:16 GMT]]></title><description><![CDATA[<p>gastgast schrieb:</p>
<blockquote>
<p>plus, wenn die DLL von mehreren Applikationen gleichzeitig genutzt werden soll. Dann muss aber auf Thread-Safeness geachtet werden.</p>
</blockquote>
<p>Na, da wird aber wohl hoffentlich jede DLL einen eigenen Prozess erhalten. Weiß jetzt nicht, was das mit Multithreading zu tun hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809232</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 17 Nov 2009 09:54:16 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 12:03:14 GMT]]></title><description><![CDATA[<p>Man kann eine DLL auch statisch in den Speicher laden. Dann werden z.B. die Daten in der DLL von allen Prozessen geteilt. Das muss man beim zugriff darauf berücksichtigen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809322</guid><dc:creator><![CDATA[gastgast]]></dc:creator><pubDate>Tue, 17 Nov 2009 12:03:14 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 13:48:24 GMT]]></title><description><![CDATA[<p>hinzu kommt noch, dass man in DLLs speichersegmente explizit teilen kann</p>
<pre><code>extern &quot;C&quot;
{
#pragma data_seg (&quot;.sharedseg&quot;)
static int value = 42;
#pragma data_seg()

__declspec( dllexport ) void setValue(int newVal)
{ 
	value = newVal;
}
__declspec( dllexport ) int getValue()
{
	return value;
}

}
</code></pre>
<p>Die section macht man dem Linker dann mit</p>
<pre><code>-section:.sharedseg,rws
</code></pre>
<p>bekannt. Zugegeben, das löst man besser mit memory mapped files, aber es geht auch so.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809382</guid><dc:creator><![CDATA[gastgast]]></dc:creator><pubDate>Tue, 17 Nov 2009 13:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 16:58:14 GMT]]></title><description><![CDATA[<p>loks schrieb:</p>
<blockquote>
<p>...Schwachsinn.</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /><br />
Ist das wirklich nötig und hilfreich?<br />
Mir scheint: Weder noch.</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809501</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Tue, 17 Nov 2009 16:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to statische lib vs dll on Tue, 17 Nov 2009 17:58:51 GMT]]></title><description><![CDATA[<blockquote>
<p>Ist das wirklich nötig und hilfreich?</p>
</blockquote>
<p>Alles nach der Antwort (also zweiter Post) ist unnoetig. Und warum alle mit ihrem shared blablub kommen ... (PS: Ich finde die Aussage auch Schwachsinn.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1809528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1809528</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Tue, 17 Nov 2009 17:58:51 GMT</pubDate></item></channel></rss>