<?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.signal]]></title><description><![CDATA[<p>Ich habe ein Problem mit Boost.signal:</p>
<p>Ich habe ein einfaches Bsp aus dem zugehörigen Boost Tutorial versucht bei mir zum laufen zu bringen.</p>
<pre><code class="language-cpp">struct HelloWorld 

#include &lt;boost/signals.hpp&gt;
#include &lt;iostream&gt;

{
  void operator()() const 
  { 
    std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; std::endl;
  } 
};

int main(){

// Signal with no arguments and a void return value
boost::signal&lt;void ()&gt; sig;

// Connect a HelloWorld slot
HelloWorld hello;
sig.connect(hello);

// Call all of the slots
sig();
}
</code></pre>
<p><a href="http://www.boost.org/doc/libs/1_36_0/doc/html/signals/tutorial.html#id3469972" rel="nofollow">http://www.boost.org/doc/libs/1_36_0/doc/html/signals/tutorial.html#id3469972</a></p>
<p>Bei dem Versuch das zu builden bekomme ich immer die Fehlermeldung:</p>
<p>undefined reference to `boost::signals::connection::~connection()'</p>
<p>Hat jemand eine idee, was da schief läuft?</p>
<p>Gruß Nic</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/238682/boost-signal</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 12:21:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/238682.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Apr 2009 12:22:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Boost.signal on Tue, 14 Apr 2009 12:22:06 GMT]]></title><description><![CDATA[<p>Ich habe ein Problem mit Boost.signal:</p>
<p>Ich habe ein einfaches Bsp aus dem zugehörigen Boost Tutorial versucht bei mir zum laufen zu bringen.</p>
<pre><code class="language-cpp">struct HelloWorld 

#include &lt;boost/signals.hpp&gt;
#include &lt;iostream&gt;

{
  void operator()() const 
  { 
    std::cout &lt;&lt; &quot;Hello, World!&quot; &lt;&lt; std::endl;
  } 
};

int main(){

// Signal with no arguments and a void return value
boost::signal&lt;void ()&gt; sig;

// Connect a HelloWorld slot
HelloWorld hello;
sig.connect(hello);

// Call all of the slots
sig();
}
</code></pre>
<p><a href="http://www.boost.org/doc/libs/1_36_0/doc/html/signals/tutorial.html#id3469972" rel="nofollow">http://www.boost.org/doc/libs/1_36_0/doc/html/signals/tutorial.html#id3469972</a></p>
<p>Bei dem Versuch das zu builden bekomme ich immer die Fehlermeldung:</p>
<p>undefined reference to `boost::signals::connection::~connection()'</p>
<p>Hat jemand eine idee, was da schief läuft?</p>
<p>Gruß Nic</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695670</guid><dc:creator><![CDATA[nic_lupus]]></dc:creator><pubDate>Tue, 14 Apr 2009 12:22:06 GMT</pubDate></item><item><title><![CDATA[Reply to Boost.signal on Tue, 14 Apr 2009 12:38:18 GMT]]></title><description><![CDATA[<p>Die includes stehen natürlich über dem struct</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695685</guid><dc:creator><![CDATA[nic_lupus]]></dc:creator><pubDate>Tue, 14 Apr 2009 12:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to Boost.signal on Tue, 14 Apr 2009 12:41:17 GMT]]></title><description><![CDATA[<p>Hast du auch die Boost.Signal Lib gelinkt? Boost.Signal ist eine von zwölf Bibliotheken in Boost, welche nicht nur aus Headern besteht:<br />
<a href="http://www.boost.org/doc/libs/1_38_0/more/getting_started/windows.html#header-only-libraries" rel="nofollow">http://www.boost.org/doc/libs/1_38_0/more/getting_started/windows.html#header-only-libraries</a></p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695690</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Tue, 14 Apr 2009 12:41:17 GMT</pubDate></item><item><title><![CDATA[Reply to Boost.signal on Tue, 14 Apr 2009 15:10:18 GMT]]></title><description><![CDATA[<p>Vielen Dank für die Antwort...</p>
<p>Ich arbeite mit eclipse. Nachdem ich mit bjam die libs gebuildet habe, habe ich diese versucht zu linken:</p>
<p>Das generierte Makefile sah dann so aus:</p>
<pre><code>################################################################################
# Automatically-generated file. Do not edit!
################################################################################

-include ../makefile.init

RM := rm -rf

# All of the sources participating in the build are defined here
-include sources.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C++_DEPS)),)
-include $(C++_DEPS)
endif
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
ifneq ($(strip $(CC_DEPS)),)
-include $(CC_DEPS)
endif
ifneq ($(strip $(CPP_DEPS)),)
-include $(CPP_DEPS)
endif
ifneq ($(strip $(CXX_DEPS)),)
-include $(CXX_DEPS)
endif
ifneq ($(strip $(C_UPPER_DEPS)),)
-include $(C_UPPER_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 

# All Target
all: SigSlot

# Tool invocations
SigSlot: $(OBJS) $(USER_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: GCC C++ Linker'
	g++ -L/usr/local/boost_1_38_0/bin.v2 -o&quot;SigSlot&quot; $(OBJS) $(USER_OBJS) $(LIBS)
	@echo 'Finished building target: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(OBJS)$(C++_DEPS)$(C_DEPS)$(CC_DEPS)$(CPP_DEPS)$(EXECUTABLES)$(CXX_DEPS)$(C_UPPER_DEPS) SigSlot
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
</code></pre>
<p>Nun bin ich mir nicht sicher, ob ich beim linken einen Fehler gemacht habe, oder etwas anderes falsch gelaufenb ist. Auf jeden Fall bekomme ich die gleiche Fehlermeldung...</p>
<p>Nic</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1695810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1695810</guid><dc:creator><![CDATA[nic_lupus]]></dc:creator><pubDate>Tue, 14 Apr 2009 15:10:18 GMT</pubDate></item><item><title><![CDATA[Reply to Boost.signal on Wed, 15 Apr 2009 13:09:05 GMT]]></title><description><![CDATA[<p>Habe das Problem gelöst... Es hat tatsächlich an den Linker-Optionen gehangen. Vielen Dank für die Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1696299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1696299</guid><dc:creator><![CDATA[nic_lupus]]></dc:creator><pubDate>Wed, 15 Apr 2009 13:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to Boost.signal on Wed, 20 May 2009 03:11:19 GMT]]></title><description><![CDATA[<p>You must link with the boost_signals library (e.g. g++ -oprogram main.cpp -lboost_signals).</p>
<p>Leider spreche ich kein Deutsch. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1713069</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1713069</guid><dc:creator><![CDATA[CRIMExTHINK]]></dc:creator><pubDate>Wed, 20 May 2009 03:11:19 GMT</pubDate></item></channel></rss>