Re: [Boost-bugs] [Boost C++ Libraries] #4767: MinGW: text_Xarchive_impl destructors marked dllimport

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4767: MinGW: text_Xarchive_impl destructors marked dllimport
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-12-04 18:35:29


#4767: MinGW: text_Xarchive_impl destructors marked dllimport
-----------------------------------------+----------------------------------
  Reporter: Jim Bell <jim@…> | Owner: ramey
      Type: Bugs | Status: reopened
 Milestone: Boost 1.46.0 | Component: date_time
   Version: Boost Development Trunk | Severity: Regression
Resolution: | Keywords: mingw date_time testgreg_serialize_dll BOOST_ARCHIVE_SOURCE
-----------------------------------------+----------------------------------

Comment (by ramey):

 NO

 BOOST_ARCHIVE_SOURCE signals that the modules should be compiled and
 exported. That is, BOOST_ARCHIVE_SOURCE should be used when the library is
 being built and ONLY then.

 Any test which uses the the library should import the symbols from the
 library/dll. I believe that the source of this problem is that an inline
 function is being defined as imported. Since it's inline, it won't be
 found in the library. It seems that most compilers are ignoring the fact
 that it's marked imported and just use the inline definition. But this
 compiler is being a little more literal. Your fix would make it work -
 but at the expense of exported the newly defined inline function - an
 undesirable side effect. The real fix is in the library itself as I've
 noted above. I haven't had time to test it yet, but I'll be surprised if
 I'm wrong about this.

 Robert Ramey

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4767#comment:7>
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:05 UTC