Boost C++ Libraries: Ticket #3347: Lack of g++ symbol visibility support in boost::asio https://svn.boost.org/trac10/ticket/3347 <p> This is somewhat similar to: </p> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/2309"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/2309</a> </p> <p> and, I think what is being offered in <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/2114"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/2114</a> may allow this problem to be fixed. </p> <p> If you compile the attached files as shown in the comments at the top of the CPP files, the one without the #pragma workaround will fail to execute its callbacks. This can also be seen with deadline timers too. </p> <p> I used 2 of the examples from the boost::asio documentation to create this example. </p> <p> The same problem does not occur on Windows using MSVC 2005. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3347 Trac 1.4.3 mark.jones@… Fri, 14 Aug 2009 18:46:30 GMT attachment set https://svn.boost.org/trac10/ticket/3347 https://svn.boost.org/trac10/ticket/3347 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">example.zip</span> </li> </ul> <p> examples of the problem and temporary workaround </p> Ticket chris_kohlhoff Tue, 12 Jan 2010 22:32:51 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3347#comment:1 https://svn.boost.org/trac10/ticket/3347#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> This bug was raised against boost 1.36, but the visibility issue has already been fixed in later versions. See changeset <a class="changeset" href="https://svn.boost.org/trac10/changeset/49202" title="Make the service_registry's usage of typeid work when the default gcc ...">[49202]</a>. </p> Ticket