Opened 13 years ago
Closed 13 years ago
#3347 closed Bugs (worksforme)
Lack of g++ symbol visibility support in boost::asio
Reported by: | 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)
Change History (2)
by , 13 years ago
Attachment: | example.zip added |
---|
comment:1 by , 13 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
This bug was raised against boost 1.36, but the visibility issue has already been fixed in later versions. See changeset [49202].
examples of the problem and temporary workaround