<?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[Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche ein Programm zu schreiben welches Boost-threads beinhaltet. Um mich langsam daran zu führen habe ich folgendes einfaches Programm geschrieben:</p>
<p>*#include&lt;iostream&gt;<br />
#include&lt;boost/thread/thread.hpp&gt;<br />
#include&lt;boost/thread/xtime.hpp&gt;</p>
<p>void ThreadFun() {</p>
<p>}</p>
<p>int main() {</p>
<p>boost::thread myThread(ThreadFun);</p>
<p>}*</p>
<p>Beim Kompilieren mit dem Befehl</p>
<p>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread</p>
<p>gab es eine sehr lange Fehlermeldung. Daraus schließ ich dass ich bei der Installation der Bibilotheken was falsch gemacht habe. Ich habe beim bauen der Libraries an die Anleitung von <a href="http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html" rel="nofollow">http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html</a> und einfach mit bjam alle Libraries gebaut.</p>
<p>Das Betriebsytem ist openSuse.</p>
<p>Für etwas Hilfe das Programm zum Laufen zu bringen wär ich dankbar.</p>
<p>Hier ist die Meldung die ich beim Kompilierne kriegen:</p>
<p><strong>linux-e3y3:/home/Gaab # c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread</strong><br />
/tmp/cchFy38k.o: In function <code>main': thread.cpp:(.text+0x108): undefined reference to</code>boost::thread::~thread()'<br />
/tmp/cchFy38k.o: In function <code>boost::mutex::mutex()': thread.cpp:(.text.\_ZN5boost5mutexC1Ev\[boost::mutex::mutex()\]+0x45): undefined reference to</code>boost::thread_resource_error::thread_resource_error()'<br />
thread.cpp:(.text._ZN5boost5mutexC1Ev[boost::mutex::mutex()]+0x4d): undefined reference to <code>boost::thread\_resource\_error::~thread\_resource_error()' thread.cpp:(.text.\_ZN5boost5mutexC1Ev\[boost::mutex::mutex()\]+0x55): undefined reference to</code>typeinfo for boost::thread_resource_error'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()': thread.cpp:(.text.\_ZN5boost6detail11thread\_dataIPFvvEED0Ev\[boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()\]+0x16): undefined reference to</code>boost::detail::thread_data_base::~thread_data_base()'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()': thread.cpp:(.text.\_ZN5boost6detail11thread\_dataIPFvvEED1Ev\[boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()\]+0x16): undefined reference to</code>boost::detail::thread_data_base::~thread_data_base()'<br />
/tmp/cchFy38k.o: In function <code>boost::condition\_variable::condition\_variable()': thread.cpp:(.text.\_ZN5boost18condition\_variableC1Ev\[boost::condition\_variable::condition\_variable()\]+0x3a): undefined reference to</code>boost::thread_resource_error::thread_resource_error()'<br />
thread.cpp:(.text._ZN5boost18condition_variableC1Ev[boost::condition_variable::condition_variable()]+0x42): undefined reference to <code>boost::thread\_resource\_error::~thread\_resource\_error()' thread.cpp:(.text.\_ZN5boost18condition\_variableC1Ev\[boost::condition\_variable::condition\_variable()\]+0x4a): undefined reference to</code>typeinfo for boost::thread_resource_error'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data\_base::thread\_data\_base()': thread.cpp:(.text.\_ZN5boost6detail16thread\_data\_baseC2Ev\[boost::detail::thread\_data\_base::thread\_data\_base()\]+0x1b): undefined reference to</code>vtable for boost::detail::thread_data_base'<br />
/tmp/cchFy38k.o: In function <code>boost::thread::thread&lt;void (*)()&gt;(void (*)(), boost::disable\_if&lt;boost::is\_convertible&lt;void (*&amp;)(), boost::detail::thread\_move\_t&lt;void (*)()&gt; &gt;, boost::thread::dummy*&gt;::type)': thread.cpp:(.text.\_ZN5boost6threadC1IPFvvEEET\_NS\_10disable\_ifINS\_14is\_convertibleIRS4\_NS\_6detail13thread\_move\_tIS4\_EEEEPNS0\_5dummyEE4typeE\[boost::thread::thread&lt;void (*)()&gt;(void (*)(), boost::disable\_if&lt;boost::is\_convertible&lt;void (*&amp;)(), boost::detail::thread\_move\_t&lt;void (*)()&gt; &gt;, boost::thread::dummy*&gt;::type)\]+0x32): undefined reference to</code>boost::thread::start_thread()'<br />
/tmp/cchFy38k.o:(.rodata._ZTIN5boost6detail11thread_dataIPFvvEEE[typeinfo for boost::detail::thread_data&lt;void (*)()&gt;]+0x8): undefined reference to `typeinfo for boost::detail::thread_data_base'<br />
collect2: ld returned 1 exit status</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/249165/problem-bei-der-installation-und-kompilierung-von-boost-thread-bibliotheken</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 15:27:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/249165.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2009 13:07:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 13:07:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche ein Programm zu schreiben welches Boost-threads beinhaltet. Um mich langsam daran zu führen habe ich folgendes einfaches Programm geschrieben:</p>
<p>*#include&lt;iostream&gt;<br />
#include&lt;boost/thread/thread.hpp&gt;<br />
#include&lt;boost/thread/xtime.hpp&gt;</p>
<p>void ThreadFun() {</p>
<p>}</p>
<p>int main() {</p>
<p>boost::thread myThread(ThreadFun);</p>
<p>}*</p>
<p>Beim Kompilieren mit dem Befehl</p>
<p>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread</p>
<p>gab es eine sehr lange Fehlermeldung. Daraus schließ ich dass ich bei der Installation der Bibilotheken was falsch gemacht habe. Ich habe beim bauen der Libraries an die Anleitung von <a href="http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html" rel="nofollow">http://www.boost.org/doc/libs/1_40_0/more/getting_started/unix-variants.html</a> und einfach mit bjam alle Libraries gebaut.</p>
<p>Das Betriebsytem ist openSuse.</p>
<p>Für etwas Hilfe das Programm zum Laufen zu bringen wär ich dankbar.</p>
<p>Hier ist die Meldung die ich beim Kompilierne kriegen:</p>
<p><strong>linux-e3y3:/home/Gaab # c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread</strong><br />
/tmp/cchFy38k.o: In function <code>main': thread.cpp:(.text+0x108): undefined reference to</code>boost::thread::~thread()'<br />
/tmp/cchFy38k.o: In function <code>boost::mutex::mutex()': thread.cpp:(.text.\_ZN5boost5mutexC1Ev\[boost::mutex::mutex()\]+0x45): undefined reference to</code>boost::thread_resource_error::thread_resource_error()'<br />
thread.cpp:(.text._ZN5boost5mutexC1Ev[boost::mutex::mutex()]+0x4d): undefined reference to <code>boost::thread\_resource\_error::~thread\_resource_error()' thread.cpp:(.text.\_ZN5boost5mutexC1Ev\[boost::mutex::mutex()\]+0x55): undefined reference to</code>typeinfo for boost::thread_resource_error'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()': thread.cpp:(.text.\_ZN5boost6detail11thread\_dataIPFvvEED0Ev\[boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()\]+0x16): undefined reference to</code>boost::detail::thread_data_base::~thread_data_base()'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()': thread.cpp:(.text.\_ZN5boost6detail11thread\_dataIPFvvEED1Ev\[boost::detail::thread\_data&lt;void (*)()&gt;::~thread\_data()\]+0x16): undefined reference to</code>boost::detail::thread_data_base::~thread_data_base()'<br />
/tmp/cchFy38k.o: In function <code>boost::condition\_variable::condition\_variable()': thread.cpp:(.text.\_ZN5boost18condition\_variableC1Ev\[boost::condition\_variable::condition\_variable()\]+0x3a): undefined reference to</code>boost::thread_resource_error::thread_resource_error()'<br />
thread.cpp:(.text._ZN5boost18condition_variableC1Ev[boost::condition_variable::condition_variable()]+0x42): undefined reference to <code>boost::thread\_resource\_error::~thread\_resource\_error()' thread.cpp:(.text.\_ZN5boost18condition\_variableC1Ev\[boost::condition\_variable::condition\_variable()\]+0x4a): undefined reference to</code>typeinfo for boost::thread_resource_error'<br />
/tmp/cchFy38k.o: In function <code>boost::detail::thread\_data\_base::thread\_data\_base()': thread.cpp:(.text.\_ZN5boost6detail16thread\_data\_baseC2Ev\[boost::detail::thread\_data\_base::thread\_data\_base()\]+0x1b): undefined reference to</code>vtable for boost::detail::thread_data_base'<br />
/tmp/cchFy38k.o: In function <code>boost::thread::thread&lt;void (*)()&gt;(void (*)(), boost::disable\_if&lt;boost::is\_convertible&lt;void (*&amp;)(), boost::detail::thread\_move\_t&lt;void (*)()&gt; &gt;, boost::thread::dummy*&gt;::type)': thread.cpp:(.text.\_ZN5boost6threadC1IPFvvEEET\_NS\_10disable\_ifINS\_14is\_convertibleIRS4\_NS\_6detail13thread\_move\_tIS4\_EEEEPNS0\_5dummyEE4typeE\[boost::thread::thread&lt;void (*)()&gt;(void (*)(), boost::disable\_if&lt;boost::is\_convertible&lt;void (*&amp;)(), boost::detail::thread\_move\_t&lt;void (*)()&gt; &gt;, boost::thread::dummy*&gt;::type)\]+0x32): undefined reference to</code>boost::thread::start_thread()'<br />
/tmp/cchFy38k.o:(.rodata._ZTIN5boost6detail11thread_dataIPFvvEEE[typeinfo for boost::detail::thread_data&lt;void (*)()&gt;]+0x8): undefined reference to `typeinfo for boost::detail::thread_data_base'<br />
collect2: ld returned 1 exit status</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771546</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 13:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 13:18:28 GMT]]></title><description><![CDATA[<p>Das sind Linkerfehler, keine Kompilierfehler. Das du Fehler beim Linken bekommst ist nicht weiter verwunderlich, schließlich gibst du keinerlei Bibliotheken an, gegen die gelinkt werden soll.</p>
<p>Das sollte eher so aussehen:</p>
<pre><code>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread -lboostthread -L/PfadZurBoostBibliothekWennNichtImStandardpfad
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1771559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771559</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 03 Sep 2009 13:18:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 13:33:00 GMT]]></title><description><![CDATA[<p>ok, danke für die schnelle Antwort.</p>
<p>Wo finde ich die Boostbibilothek, ist das die thread.hpp oder wie heisst die? ich habe keine Datei die lboostthread heisst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771580</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 13:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 13:42:35 GMT]]></title><description><![CDATA[<p>timobachtel schrieb:</p>
<blockquote>
<p>ok, danke für die schnelle Antwort.</p>
<p>Wo finde ich die Boostbibilothek, ist das die thread.hpp oder wie heisst die? ich habe keine Datei die lboostthread heisst.</p>
</blockquote>
<p>thread.hpp ist ein Header, da sind die ganzen Deklarationen drin, die man zum Kompilieren braucht.</p>
<p>In der Bibliothek ist der Maschinencode, der zu den Deklarationen gehört, der vom Linker dann an den entsprechenden Stellen in dein Programm eingesetzt wird. Bibliotheken liegen unter Linux meistens unter /usr/lib oder /usr/local/lib. Die boost Bibliotheken werden aber wahrscheinlich nochmal einen oder mehrere Unterordner haben.</p>
<p>Die Bibliotheksdateien heißen aber nicht selber lboostthread. Die Namen der zugehörigen Bibliotheken sind von der Form <a href="http://libboostthread.so" rel="nofollow">libboostthread.so</a> oder libboostthread.a oder ähnlich. Ich habe auch nicht in der Doku von Boost nachgeguckt, möglicherweise ist noch ein Unterstrich zwischen boost und thread. Solche details stehen aber sicherlich irgendwo in der Dokumentation.</p>
<p>Du solltest dich auch zumindest mal oberflächlich mit diesen Dingen beschäftigen, das wird dir immer wieder mal begegnen, dass du mit solchen Dingen Probleme bekommst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771586</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 03 Sep 2009 13:42:35 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 13:44:04 GMT]]></title><description><![CDATA[<p>timobachtel schrieb:</p>
<blockquote>
<p>ok, danke für die schnelle Antwort.</p>
<p>Wo finde ich die Boostbibilothek, ist das die thread.hpp oder wie heisst die? ich habe keine Datei die lboostthread heisst.</p>
</blockquote>
<p>sie heißt booststread. müsste sich irgendwo dort befinden wo du boost gebaut hast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771587</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 03 Sep 2009 13:44:04 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:02:26 GMT]]></title><description><![CDATA[<p>So, ich habe es jetzt mit folgendem Kommando probiert:</p>
<p><em>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread -L/usr/local/boost_1_40_0/stage/lib/libboost_thread.a</em></p>
<p>da ich in genau dem Verzeichnis die Dateien libboost_thread.a libboost_thread.so und libboost_thread.so.1.40.0 gefunden habe.</p>
<p>Allerdings bekomme ich immernoch dieselbe lange Fehlermeldung beim Linken(glaube zumindest dass es dieselbe ist).</p>
<p>ich habe es auch mit <em>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread <strong>-lboostthread</strong> -L/usr/local/boost_1_40_0/stage/lib/libboost_thread.a</em> probiert, dann sagt er mir nur dass er lboostthread nicht findet.</p>
<p>Ich scheine hier noch was ganz grundsätzlich falsch zu machen und wälze auch schon die Bücher, vielleicht fällt euch aber noch was auf was ich falsch mache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771601</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:10:49 GMT]]></title><description><![CDATA[<blockquote>
<p>-lboostthread</p>
</blockquote>
<p>bedeutet, dass die Datei folgendermaßen heißen muss:</p>
<p><strong><a href="http://libboostthread.so" rel="nofollow">libboostthread.so</a> ( .a )</strong></p>
<p>müsste vermutlich im /usr/lib/<br />
liegen.</p>
<p>Wenn ich das richtig in Erinnerung habe.<br />
Also gucken wie die library heißt. Das &quot;lib&quot; vorn weglassen und die endung auch und dann den Rest des Namens dem Linker mitteilen. Korrigier mich jemand, wenn ich falsch liege <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/1771606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771606</guid><dc:creator><![CDATA[It0101]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:10:49 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:11:14 GMT]]></title><description><![CDATA[<p>Wenn die Datei libboost_thread.so heißt, dann musst du mit -lboost_thread linken. Außerdem gibt man bei -L gewöhlich nur den Pfad an, nicht den Dateinamen. Mag sein, dass das aber trotzdem funktioniert, wenn man eine Datei angibt. Alles zusammen:</p>
<pre><code>c++ -I /usr/local/boost_1_40_0 thread.cpp -o thread -lboost_thread -L/usr/local/boost_1_40_0/stage/lib/
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1771607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771607</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:11:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:11:17 GMT]]></title><description><![CDATA[<p>... gib mal nach '-L' nicht ne Bibliothek sondern den Übergeordneten Ordner an ...</p>
<p>Gruß Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771608</guid><dc:creator><![CDATA[varginator]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:13:02 GMT]]></title><description><![CDATA[<p>wenn die Datei libboost_thread heißt solltest du auch den Namen angeben und nicht einen, der nur so ähnlich ist. (ich bin mir nicht ganz sicher ob mit oder ohne Endung, sollte aber die Doku zum gcc Linker hergeben). Drauf achten dass es dann zwei l sind, das eine für den Linker (&quot;-l&quot; heißt die Option), und eines für den Lib-Namen. Bei der &quot;-L&quot;-Option wird nur das Verzeichnis angegeben, wo der Linker nach geeigneten Bibliotheken suchen soll - also ohne die libboost_thread.a am Ende:</p>
<pre><code>c++ -I/usr/local/boost_1_40_0 thread.cpp -o thread -llibboost_thread -L/usr/local/boost_1_40_0/stage/lib/
</code></pre>
<p>Wie gesagt, ggf noch das .a an libbost_thread anfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771609</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:13:02 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:16:08 GMT]]></title><description><![CDATA[<p>also ich hab mal bei mir geschaut.<br />
Da heißt die Datei:</p>
<p><strong>/usr/lib/libboost_thread-gcc41-mt.so</strong></p>
<p>d.h. linken würdest du dann mit -lboost_thread-gcc41-mt</p>
<p>Ich hoffe das kommt soweit hin ( ich nutze immer eclipse <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771612</guid><dc:creator><![CDATA[It0101]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:19:55 GMT]]></title><description><![CDATA[<p>Danke, das Linken hat jetzt funktioniert.</p>
<p>Allerdings machen die Bibliotheken beim ausführen des Programmes immer noch Ärger. hier die Fehlermeldung:</p>
<p>./thread: error while loading shared libraries: libboost_thread.so.1.40.0: cannot open shared object file: No such file or directory</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771614</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:19:55 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 14:26:16 GMT]]></title><description><![CDATA[<blockquote>
<p>Allerdings machen die Bibliotheken beim ausführen des Programmes immer noch Ärger. hier die Fehlermeldung:</p>
<p>./thread: error while loading shared libraries: libboost_thread.so.1.40.0: cannot open shared object file: No such file or directory</p>
</blockquote>
<p>Füg' der Umgebungsvariable LD_LIBRARY_PATH den Pfad zu den Boost Bibliotheken hinzu oder linke statisch.</p>
<p>edit: Und mal ernsthaft: Beschäftige dich mal mit dem Thema Linken von Bibliotheken, sonst wirst du hier jedes mal Nachfragen müssen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771619</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 03 Sep 2009 14:26:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 15:17:19 GMT]]></title><description><![CDATA[<p>Das mit dem Statisch Linken funktioniert leider nicht, ich bekomme wieder die lange Fehlermeldung wie zu Anfang.</p>
<p>Das setzen der Umgebungsvariablen, welches ich mit folgendem Befehl gemacht habe</p>
<p><em>LD_LIBRARY_PATH=/usr/local/boost_1_40_0/stage/lib/</em></p>
<p>hat nichts an der Fehlermeldung geändert.</p>
<p>Vielleicht hat noch jemand einen Vorschlag. Ich lese mich währendem immer mehr in die Thematik ein, hab aber noch keine Lösung gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771673</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 15:17:19 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 15:44:56 GMT]]></title><description><![CDATA[<p>Hat sich erledigt. Bin jetzt woanders auf eine Lösung gestoßen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771702</guid><dc:creator><![CDATA[timobachtel]]></dc:creator><pubDate>Thu, 03 Sep 2009 15:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei der Installation und Kompilierung von Boost-Thread Bibliotheken on Thu, 03 Sep 2009 15:47:17 GMT]]></title><description><![CDATA[<p>timobachtel schrieb:</p>
<blockquote>
<p>Das mit dem Statisch Linken funktioniert leider nicht, ich bekomme wieder die lange Fehlermeldung wie zu Anfang.</p>
</blockquote>
<p>Dann sind die boost Bibliotheken nicht zum statischen linken geeignet oder sie werden nicht gefunden. Bibliotheken zum statischen Linken enden mit .a (wie archive) und welche zum dynamischen Linken mit .so (wie shared object).</p>
<blockquote>
<p>Das setzen der Umgebungsvariablen, welches ich mit folgendem Befehl gemacht habe</p>
<p><em>LD_LIBRARY_PATH=/usr/local/boost_1_40_0/stage/lib/</em></p>
<p>hat nichts an der Fehlermeldung geändert.</p>
</blockquote>
<p>Wie man Umgebungsvariablen setzt, hängt von deiner shell ab. Wenn du bash verwendest und danach nicht zu einer anderen Konsole wechselst, dann ist das so richtig.</p>
<blockquote>
<p>Vielleicht hat noch jemand einen Vorschlag. Ich lese mich währendem immer mehr in die Thematik ein, hab aber noch keine Lösung gefunden.</p>
</blockquote>
<p>Es gibt auch die Möglichkeit, den Pfad zu dynamischen Bibliotheken in ein Programm einzukompilieren, mittels LD_RUN_PATH. Damit du hier nicht jedes Detail nachfragen musst:<br />
<a href="http://osr507doc.sco.com/en/tools/ccs_linkedit_dynamic_dirsearch.html" rel="nofollow">http://osr507doc.sco.com/en/tools/ccs_linkedit_dynamic_dirsearch.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1771703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1771703</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 03 Sep 2009 15:47:17 GMT</pubDate></item></channel></rss>