<?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[lib in ausführbare Datei &amp;quot;einbinden&amp;quot;]]></title><description><![CDATA[<p>Hallo</p>
<p>ich hab ein Programm geschrieben und verwende dabei eine Funktion aus eine Bibliothek (libboost_thread.so.1.42.0).<br />
Dafür inkludiere ich</p>
<pre><code>&quot;boost/thread.hpp&quot;.
</code></pre>
<p>Beim kompilieren verwende ich &quot;-lboost_thread-mt -lpthread&quot;.<br />
Die Datei lässt sich auch wunderbar auf meinem Rechner ausführen. Verwende ich diese Datei auf einen baugleichen Rechner (+ gleiches Betriebssystem), bekomm ich die folgende Fehlermeldung:</p>
<pre><code>&quot;error while loading shared libraries: libboost_thread.so.1.42.0: cannot open shared object file: No such file or directory&quot;
</code></pre>
<p>Auf diesem Rechner ist die Datei nicht vorhanden, da kein boost installiert ist. Soweit alles klar <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>Ist es irgendwie möglich, die Bibliothek in die ausführbare Datei zu bekommen, ohne dass ich dort erst boost installieren muss?<br />
Danke und viele Grüße<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/290485/lib-in-ausführbare-datei-quot-einbinden-quot</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 12:35:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/290485.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Jul 2011 12:38:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 12:38:16 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ich hab ein Programm geschrieben und verwende dabei eine Funktion aus eine Bibliothek (libboost_thread.so.1.42.0).<br />
Dafür inkludiere ich</p>
<pre><code>&quot;boost/thread.hpp&quot;.
</code></pre>
<p>Beim kompilieren verwende ich &quot;-lboost_thread-mt -lpthread&quot;.<br />
Die Datei lässt sich auch wunderbar auf meinem Rechner ausführen. Verwende ich diese Datei auf einen baugleichen Rechner (+ gleiches Betriebssystem), bekomm ich die folgende Fehlermeldung:</p>
<pre><code>&quot;error while loading shared libraries: libboost_thread.so.1.42.0: cannot open shared object file: No such file or directory&quot;
</code></pre>
<p>Auf diesem Rechner ist die Datei nicht vorhanden, da kein boost installiert ist. Soweit alles klar <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>Ist es irgendwie möglich, die Bibliothek in die ausführbare Datei zu bekommen, ohne dass ich dort erst boost installieren muss?<br />
Danke und viele Grüße<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098445</guid><dc:creator><![CDATA[railrun]]></dc:creator><pubDate>Wed, 27 Jul 2011 12:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 12:41:32 GMT]]></title><description><![CDATA[<p>Warum lieferst du die libboost_thread.so nicht einfach mit?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098449</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 27 Jul 2011 12:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 12:47:34 GMT]]></title><description><![CDATA[<p>Link es static.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098454</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 27 Jul 2011 12:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 12:58:24 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Link es static.</p>
</blockquote>
<p>Ich hab es mit -static probiert, die Datei wird dann auch deutlich größer, aber es besteht weiterhin der Fehler...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098462</guid><dc:creator><![CDATA[railrun]]></dc:creator><pubDate>Wed, 27 Jul 2011 12:58:24 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 13:52:17 GMT]]></title><description><![CDATA[<p>Verwendest du eine im Debug-Modus erstellte Datei? Wenn nein, dann versuch's im Release-Modus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098498</guid><dc:creator><![CDATA[Rew.]]></dc:creator><pubDate>Wed, 27 Jul 2011 13:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 14:10:17 GMT]]></title><description><![CDATA[<p>Rew. schrieb:</p>
<blockquote>
<p>Verwendest du eine im Debug-Modus erstellte Datei? Wenn nein, dann versuch's im Release-Modus.</p>
</blockquote>
<p>Ich verwende schon die &quot;Release&quot;-Version. Ohne -static ist die Datei 8 kb groß. Mit -static ist sie 1,5 mb groß.<br />
Beim linken verwendet eclipse folgenden Befehl:</p>
<pre><code>**** Build of configuration Release for project boost ****

make all 
Building target: boost
Invoking: GCC C++ Linker
g++ -L/usr/lib -static -o&quot;boost&quot;  ./src/boost.o   -lboost_thread-mt -lpthread
Finished building target: boost
</code></pre>
<p>Sieht für mich eigentlich richtig aus (was ich bisher so bei Tante google gefunden habe).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098517</guid><dc:creator><![CDATA[railrun]]></dc:creator><pubDate>Wed, 27 Jul 2011 14:10:17 GMT</pubDate></item><item><title><![CDATA[Reply to lib in ausführbare Datei &amp;quot;einbinden&amp;quot; on Wed, 27 Jul 2011 14:22:04 GMT]]></title><description><![CDATA[<p>railrun schrieb:</p>
<blockquote>
<p>Rew. schrieb:</p>
<blockquote>
<p>Verwendest du eine im Debug-Modus erstellte Datei? Wenn nein, dann versuch's im Release-Modus.</p>
</blockquote>
<p>Ich verwende schon die &quot;Release&quot;-Version. Ohne -static ist die Datei 8 kb groß. Mit -static ist sie 1,5 mb groß.<br />
Beim linken verwendet eclipse folgenden Befehl:</p>
<pre><code>**** Build of configuration Release for project boost ****

make all 
Building target: boost
Invoking: GCC C++ Linker
g++ -L/usr/lib -static -o&quot;boost&quot;  ./src/boost.o   -lboost_thread-mt -lpthread
Finished building target: boost
</code></pre>
<p>Sieht für mich eigentlich richtig aus (was ich bisher so bei Tante google gefunden habe).</p>
</blockquote>
<p>Hat sich jetzt erledigt... Der nette Kollege am anderen Rechner hat immer die gleiche Datei verwendet... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /> <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/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /> Sorry für stören und danke für die Hilfe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2098531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2098531</guid><dc:creator><![CDATA[railrun]]></dc:creator><pubDate>Wed, 27 Jul 2011 14:22:04 GMT</pubDate></item></channel></rss>