<?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[Boost mag meine function nich]]></title><description><![CDATA[<p>jo... ich wollt ml threads probieren ... aber boost verweigert mir die einfachsten threadoperationen ...<br />
ich hab den simplen quelltext:</p>
<pre><code class="language-cpp">#include &lt;boost/thread/thread.hpp&gt;
#include &lt;boost/thread/mutex.hpp&gt;
#include &lt;boost/thread/thread.hpp&gt;
#include &lt;boost/thread/condition.hpp&gt;
#include &lt;boost/thread/exceptions.hpp&gt;
#include &lt;boost/thread/mutex.hpp&gt;
#include &lt;boost/thread/once.hpp&gt;
#include &lt;boost/thread/recursive_mutex.hpp&gt;
#include &lt;boost/thread/tss.hpp&gt;
#include &lt;boost/thread/xtime.hpp&gt; 
#include &lt;iostream&gt;

using namespace std;

boost::mutex io_mutex;

void inc()
{
 int i;
 i++;     
};

int main()
{
  boost::thread thrd1(inc());
  thrd1.join;
  return 0;
};
</code></pre>
<p>und bekomme exakt 2 fehler:</p>
<pre><code>main.cpp:26: error: invalid use of void expression
main.cpp:27: error: statement cannot resolve address of overloaded function
</code></pre>
<p>kann mir einer sagen, wie ich vor allem fehler no. 1 ( den mit der void expression) beheben könnte ?<br />
dank euch schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/215413/boost-mag-meine-function-nich</link><generator>RSS for Node</generator><lastBuildDate>Mon, 12 Oct 2026 07:53:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/215413.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Jun 2008 17:39:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:39:22 GMT]]></title><description><![CDATA[<p>jo... ich wollt ml threads probieren ... aber boost verweigert mir die einfachsten threadoperationen ...<br />
ich hab den simplen quelltext:</p>
<pre><code class="language-cpp">#include &lt;boost/thread/thread.hpp&gt;
#include &lt;boost/thread/mutex.hpp&gt;
#include &lt;boost/thread/thread.hpp&gt;
#include &lt;boost/thread/condition.hpp&gt;
#include &lt;boost/thread/exceptions.hpp&gt;
#include &lt;boost/thread/mutex.hpp&gt;
#include &lt;boost/thread/once.hpp&gt;
#include &lt;boost/thread/recursive_mutex.hpp&gt;
#include &lt;boost/thread/tss.hpp&gt;
#include &lt;boost/thread/xtime.hpp&gt; 
#include &lt;iostream&gt;

using namespace std;

boost::mutex io_mutex;

void inc()
{
 int i;
 i++;     
};

int main()
{
  boost::thread thrd1(inc());
  thrd1.join;
  return 0;
};
</code></pre>
<p>und bekomme exakt 2 fehler:</p>
<pre><code>main.cpp:26: error: invalid use of void expression
main.cpp:27: error: statement cannot resolve address of overloaded function
</code></pre>
<p>kann mir einer sagen, wie ich vor allem fehler no. 1 ( den mit der void expression) beheben könnte ?<br />
dank euch schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526564</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526564</guid><dc:creator><![CDATA[b10h4z4rd]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:43:20 GMT]]></title><description><![CDATA[<p>Du solltest die Funktion und nicht deren Ergebnis übergeben.</p>
<pre><code class="language-cpp">boost::thread thrd1(inc);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1526567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526567</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:44:18 GMT]]></title><description><![CDATA[<p>Du willst doch die Funktion (bzwl. einen Zeiger darauf) übergeben, nicht das Funktionsergebnis. Also lass die Klammern nach inc weg. In der nächsten Zeile fehlen sie dagegen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526568</guid><dc:creator><![CDATA[camper]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:51:36 GMT]]></title><description><![CDATA[<p>boah ey ... echt hammer forum ... 2 min..<br />
ich bin überwältigt ...</p>
<p>also kompilliert hatter jetz</p>
<p>nicht allerdings von den verschiedenen linker errors die mir mein nettes Dev nun entgegenschmeißt:</p>
<pre><code>[Linker error] undefined reference to `boost::thread::join()' 
  [Linker error] undefined reference to `boost::thread::~thread()'
  ...
  da kommen dann noch 6 sone teile
</code></pre>
<p>habter da auch ne erklärung?<br />
wenn ja wär das Hammer ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526575</guid><dc:creator><![CDATA[b10h4z4rd]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:51:36 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:56:16 GMT]]></title><description><![CDATA[<p>Hast du denn auch die Thread-lib mit gelinkt bzw. weiß dein Compiler wo sich die dazugehörigen libs und dlls befinden??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526577</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:56:16 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 17:59:05 GMT]]></title><description><![CDATA[<p>die sind im include ordner wie zum beispiel iostream auch ... reicht das... oder muss ich die noch extra einbinden ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526579</guid><dc:creator><![CDATA[b10h4z4rd]]></dc:creator><pubDate>Tue, 10 Jun 2008 17:59:05 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 18:05:55 GMT]]></title><description><![CDATA[<p>boost::thread ist eine Bibliothek. Hier reicht es nicht einfach header einzubinden. Wie hast du boost denn installiert? Hast du die boost-libs auch für deinen Compiler erstellt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526585</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 10 Jun 2008 18:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 18:11:15 GMT]]></title><description><![CDATA[<p>ich denk mal da liegt der Hase im Pfeffer .....ich hab den boost ordner lediglich in die include geschmissen ... war wohl n bissel voreilig, was? hoffe ihr seid mir nicht böse</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526591</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526591</guid><dc:creator><![CDATA[B10h4z4rd]]></dc:creator><pubDate>Tue, 10 Jun 2008 18:11:15 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Tue, 10 Jun 2008 18:20:44 GMT]]></title><description><![CDATA[<p>so habs gefunden wie ichs installiere .. gibt da n schönes tut bei<br />
<a href="http://wagjo.com/index.php?id=27" rel="nofollow">http://wagjo.com/index.php?id=27</a><br />
danke für alles leute .. ich meld mich hier mal an .. das scheint echt gut zu sein ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526595</guid><dc:creator><![CDATA[B10h4z4rd]]></dc:creator><pubDate>Tue, 10 Jun 2008 18:20:44 GMT</pubDate></item><item><title><![CDATA[Reply to Boost mag meine function nich on Wed, 11 Jun 2008 05:18:09 GMT]]></title><description><![CDATA[<p>boost ist eine methode , also thread.join()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1526737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1526737</guid><dc:creator><![CDATA[kitov]]></dc:creator><pubDate>Wed, 11 Jun 2008 05:18:09 GMT</pubDate></item></channel></rss>