Re: [Boost-bugs] [Boost C++ Libraries] #13286: warning C4141: 'dllexport': used more than once

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13286: warning C4141: 'dllexport': used more than once
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-04-30 20:39:47


#13286: warning C4141: 'dllexport': used more than once
-------------------------------+---------------------------
  Reporter: tsondergaard@… | Owner: Robert Ramey
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.65.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by Conrad Poelman <cpboost@…>):

 We have seen the same problem. We applied the changes to remove
 BOOST_DLLEXPORT from the three places and it eliminated the compile
 warnings, but left us with link warnings about importing exported symbols.
 (Sorry, I had saved the full text of the warnings but Trac tossed away all
 my text when I went to add an attachment.)

 Instead we found if we removed BOOST_SERIALIZATION_DECL /
 BOOST_WARCHIVE_DECL from the same lines, and left in BOOST_DLLEXPORT, both
 compile and link warnings went away.

 Also we removed them from lines 21 & 49 of codecvt_null.cpp to eliminate
 two more warnings that occur while compiling Boost itself.

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/13286#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 : 2018-04-30 20:49:11 UTC