Re: [Boost-bugs] [Boost C++ Libraries] #6644: Windows: auto_link.hpp incorrectly errors with "Mixing a dll boost library with a static runtime is a really bad idea..."

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6644: Windows: auto_link.hpp incorrectly errors with "Mixing a dll boost library with a static runtime is a really bad idea..."
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-02 03:22:49


#6644: Windows: auto_link.hpp incorrectly errors with "Mixing a dll boost library
with a static runtime is a really bad idea..."
---------------------------------+------------------------------------------
  Reporter: noloader@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: config
   Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords: Windows auto_link /MT /MD DLL
---------------------------------+------------------------------------------

Comment (by noloader@…):

 {{{
 //
 // auto_link.hpp
 // select linkage opt:
 //
 #if (defined(_DLL) || defined(_RTLDLL)) && defined(BOOST_DYN_LINK)
 # define BOOST_LIB_PREFIX
 #elif defined(BOOST_DYN_LINK)
 # error "Mixing a dll boost library with a static runtime is a really bad
 idea..."
 #else
 # define BOOST_LIB_PREFIX "lib"
 #endif
 }}}

 The above appears broken. I just verified {{{_DLL}}} is *not* defined.
 Additionally, I did *not* define {{{BOOST_DYN_LINK}}}. I don't know about
 {{{_RTLDLL}}}, but I did not define it either.

 Finally, there does not appear to be a {{{BOOST_STATIC_LINK}}} that I can
 define.

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