Hi !
On Thursday 02 September 2004 17:15, Doug Gregor wrote:
On Aug 30, 2004, at 4:39 PM, Alain Cormier wrote:
Hi,
Just want to know *exactly* how to use boost::signals in a Qt
project. I read this : http://www.boost.org/doc/html/ch06s04.html
but I don't understand how to do it.
First, you should try the attached patch to libs/signals/build/Jamfile
in order to get the right settings when building the signals library
(and maybe run the tests ;-) )
You can replace boost_signals with signalslib, of course.
I try to recompile boost with :
"-sBUILD=<define>BOOST_SIGNALS_NAMESPACE=signalslib".
which compile / toolset ? even: which bjam ? Please post the complete
commandline next time ;-)
After that, I try to directly change BOOST_SIGNALS_NAMESPACE in
signals_common.hpp but didn't work neither.
Are you #defining BOOST_SIGNALS_NAMESPACE to signalslib when you're
building your application? Some indication of how it failed would
help.
Yes, this is needed, of course.
Some more output would be helpful.
Yours,
Jürgen
Index: libs/signals/build/Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/libs/signals/build/Jamfile,v
retrieving revision 1.12
diff -u -r1.12 Jamfile
--- libs/signals/build/Jamfile 25 Jul 2004 02:59:30 -0000 1.12
+++ libs/signals/build/Jamfile 2 Sep 2004 17:42:46 -0000
@@ -18,6 +18,7 @@
: # sources
: # requirements
<define>BOOST_SIGNALS_NO_LIB=1
+ <define>BOOST_SIGNALS_NAMESPACE=boost_signals
<sysinclude>$(BOOST_ROOT)
;
@@ -29,6 +30,7 @@
: <template>signals-options # sources
: # requirements
<define>BOOST_SIGNALS_DYN_LINK=1
+ <define>BOOST_SIGNALS_NAMESPACE=boost_signals
<runtime-link>dynamic
;
@@ -41,7 +43,6 @@
debug release
;
-
dll boost_signals : ../src/$(SOURCES).cpp <template>signals-dll-options
:
[ common-names ]
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users