Closed GoogleCodeExporter closed 8 years ago
The set of boost libraries that need to be linked depends on the version of
Boost. You can specify the libraries to use with the 'boost_thread_lib' option
to scons, e.g.:
scons build boost_thread_lib=boost_thread,boost_system
Note that 'cxx_flags' is only passed when compiling the code, not when linking
it. If you need to specify additional linker options, you can do that using the
'debug_linker_flags' and 'no_debug_linker_flags' arguments.
Please post again to confirm if this solution works for you.
Original comment by yarmond
on 29 Aug 2014 at 4:00
Yes, that fixed it: I used
scons build boost_thread_lib=boost_system
as you suggested, and everything went fine. Also, thanks for pointing out my
misunderstanding of 'cxx_flags'.
Thanks a lot for your help,
Eduardo.
Original comment by edug9...@gmail.com
on 31 Aug 2014 at 9:00
In my case, (OSX 10.9 with boost from MacPorts), the build_thread_safe option
only works when
boost_thread_lib=boost_thread-mt,boost_system-mt
is passed to scons.
Possibly a different problem, but might be worth a try.
Original comment by thetruet...@googlemail.com
on 31 Aug 2014 at 9:26
Original comment by yarmond
on 1 Sep 2014 at 11:48
Original issue reported on code.google.com by
edug9...@gmail.com
on 29 Aug 2014 at 9:24Attachments: