Re: [Boost-bugs] [Boost C++ Libraries] #6688: better support for exporting symbols from DLL

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6688: better support for exporting symbols from DLL
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-18 23:16:00


#6688: better support for exporting symbols from DLL
--------------------------------------+-------------------------------------
  Reporter: arvid@… | Owner: chris_kohlhoff
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords: export symbol
--------------------------------------+-------------------------------------

Comment (by arvid@…):

 actually. with some more testing on darwin, it turns out there's one more
 change for this to work with GCC. the io_service::service type is not
 exported, only some of its member functions. My understanding of MSVC's
 export semantics is that all type metadata (specifically type_info and
 vtables) are always exported, whereas on GCC, you have to explicitly
 export a type for its metadata to be exported. I think the
 io_service::service type should be exported for this reason (otherwise I
 get a link error failing to find its type_info, presumably originating
 from a typeid() call inside an asio header).

 I'm attaching an updated patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6688#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC