Question on DLL import/export

Reading http://www.boost.org/more/separate_compilation.html I see suggestion that all library sources start with: #define BOOST_WHATEVER_SOURCE #include <boost/whatever.hpp> Is there any particular reason why this define should be placed in source, and not in Jamfile for the library? E.g: dll boost_program_options : ...some sources... : <define>BOOST_PROGRAM_OPTIONS_SOURCE ..... ; - Volodya

Reading http://www.boost.org/more/separate_compilation.html I see suggestion that all library sources start with:
#define BOOST_WHATEVER_SOURCE #include <boost/whatever.hpp>
Is there any particular reason why this define should be placed in source, and not in Jamfile for the library? E.g:
dll boost_program_options : ...some sources... : <define>BOOST_PROGRAM_OPTIONS_SOURCE ..... ;
None, except that the user may sometimes want to build from their IDE rather than bjam. John.
participants (2)
-
John Maddock
-
Vladimir Prus