[C++-sig] Auto-Linking to Boost.Python
John Reid
j.reid at mail.cryst.bbk.ac.uk
Fri May 18 10:15:32 CEST 2007
David Abrahams wrote:
> Are you certain? I was pretty sure I never did anything to support
> auto linking in Boost.Python.
>
>
I noticed this at the end of python/detail/config.hpp:
// enable automatic library variant selection
------------------------------//
#if !defined(BOOST_PYTHON_SOURCE) && !defined(BOOST_ALL_NO_LIB) &&
!defined(BOOST_PYTHON_NO_LIB)
//
// Set the name of our library, this will get undef'ed by auto_link.hpp
// once it's done with it:
//
#define BOOST_LIB_NAME boost_python
//
// If we're importing code from a dll, then tell auto_link.hpp about it:
//
#ifdef BOOST_PYTHON_DYNAMIC_LIB
# define BOOST_DYN_LINK
#endif
//
// And include the header that does the work:
//
#include <boost/config/auto_link.hpp>
#endif // auto-linking disabled
More information about the Cplusplus-sig
mailing list