Boost logo

Boost :

Subject: Re: [boost] C++03 / C++11 compatibility question for compiled libraries
From: Peter Dimov (lists_at_[hidden])
Date: 2018-02-08 15:48:45


Edward Diener wrote:

> I discuss a solution for this in the documentation topic "Use in a
> non-header only library".

lib MyLib : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_std : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_fn_rx : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_fn_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_fn : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_rx_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_rx : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_ar_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_ar : MyHeader.cpp : <define>CXXD_ARRAY_USE_STD
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_fn_rx_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_fn_rx : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_fn_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_fn : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_STD <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_rx_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;
lib MyLib_rx : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_STD
<define>CXXD_TUPLE_USE_BOOST <define>MYLIB_BEING_BUILT ;
lib MyLib_tp : MyHeader.cpp : <define>CXXD_ARRAY_USE_BOOST
<define>CXXD_FUNCTION_USE_BOOST <define>CXXD_REGEX_USE_BOOST
<define>CXXD_TUPLE_USE_STD <define>MYLIB_BEING_BUILT ;

This probably gives you an idea why one might prefer to always use the Boost
components instead.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk