Opened 14 years ago

Closed 12 years ago

#2728 closed Bugs (fixed)

Missing BOOST_THREAD_DECL for boost::detail::add_thread_exit_function(

Reported by: chanop.silpa-anan@… Owned by: Anthony Williams
Milestone: Boost 1.38.0 Component: thread
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Currently in 1.36.0, 1.37.0 and trunk svn, boost::detail::add_thread_exit_function does not have BOOST_THREAD_DECL. This makes the symbol to be internal of boost_thread*.dll and not exported; hence causing linking error.

Change History (2)

comment:1 by glimberg@…, 13 years ago

This bug is still present in boost 1.42. To fix, the following patch needs to be applied on boost/thread/detail/thread.hpp:

Index: thread.hpp =================================================================== --- thread.hpp +++ thread.hpp @@ -464,7 +464,7 @@

}

};

  • void add_thread_exit_function(thread_exit_function_base*);

+ void BOOST_THREAD_DECL add_thread_exit_function(thread_exit_function_base*);

}

namespace this_thread

comment:2 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in 1.43.0

Note: See TracTickets for help on using tickets.