Opened 13 years ago

Closed 13 years ago

#3347 closed Bugs (worksforme)

Lack of g++ symbol visibility support in boost::asio

Reported by: mark.jones@… Owned by: chris_kohlhoff
Milestone: Component: asio
Version: Boost 1.36.0 Severity: Problem
Keywords: callbacks timers firing shared library asynchronous Cc:

Description

This is somewhat similar to:

https://svn.boost.org/trac/boost/ticket/2309

and, I think what is being offered in https://svn.boost.org/trac/boost/ticket/2114 may allow this problem to be fixed.

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.

I used 2 of the examples from the boost::asio documentation to create this example.

The same problem does not occur on Windows using MSVC 2005.

Attachments (1)

example.zip (4.2 KB ) - added by mark.jones@… 13 years ago.
examples of the problem and temporary workaround

Download all attachments as: .zip

Change History (2)

by mark.jones@…, 13 years ago

Attachment: example.zip added

examples of the problem and temporary workaround

comment:1 by chris_kohlhoff, 13 years ago

Resolution: worksforme
Status: newclosed

This bug was raised against boost 1.36, but the visibility issue has already been fixed in later versions. See changeset [49202].

Note: See TracTickets for help on using tickets.