[thread] link errors on cygwin/release

(cygwin/debug links fine) ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0xd1): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x147): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x231): undefined reference to `boost::condition_variable::~condition_variable [in-charge]()' Incidentally, I have a question: are boost::condition_variable and boost::mutex destruction-safe on all of the supported platforms? I'm debugging some sort of race in a test which creates/destroys condvar/mutex objects and 2 threads many times in a loop. Thanks, Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode

"Emil Dotchevski" <emil@revergestudios.com> writes:
(cygwin/debug links fine)
../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0xd1): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x147): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x231): undefined reference to `boost::condition_variable::~condition_variable [in-charge]()'
That looks like one of the failures in the regression tests. I've tried to fix it (since your message) but the tests haven't cycled yet. Do you have a test case?
Incidentally, I have a question: are boost::condition_variable and boost::mutex destruction-safe on all of the supported platforms? I'm debugging some sort of race in a test which creates/destroys condvar/mutex objects and 2 threads many times in a loop.
What do you mean by destruction safe? Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

On Fri, May 30, 2008 at 3:35 AM, Anthony Williams <anthony.ajw@gmail.com> wrote:
"Emil Dotchevski" <emil@revergestudios.com> writes:
(cygwin/debug links fine)
../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0xd1): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x147): undefined reference to `boost::condition_variable::condition_variable[in-charge]()' ../../../../bin/lib/re_0_02_0/impl/test/test-wfmo.test/gcc-3.3.3/release/link-static/threading-multi/test-wfmo.o:test-wfmo.cpp:(.text$_ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base[not-in-charge]()]+0x231): undefined reference to `boost::condition_variable::~condition_variable [in-charge]()'
That looks like one of the failures in the regression tests. I've tried to fix it (since your message) but the tests haven't cycled yet. Do you have a test case?
I don't have a proper test case but it works now, thanks. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode
participants (2)
-
Anthony Williams
-
Emil Dotchevski