diff --git a/build/Jamfile b/build/Jamfile index c56bf47c..78d1e84a 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -84,7 +84,13 @@ lib libboost_python : ../src/$(CPP_SOURCES).cpp true $(PYTHON_PROPERTIES) ; - +dll libboost_python$(SUFDLL[1]) : ../src/$(CPP_SOURCES).cpp + # requirements + : $(BOOST_PYTHON_INCLUDES) + true + BOOST_RE_BUILD_DLL=1 + $(PYTHON_PROPERTIES) ; + ############# comprehensive module and test ########### bpl-test boost_python_test : ../test/comprehensive.cpp ; diff --git a/src/classes.cpp b/src/classes.cpp index 75f8a01a..c721ef5c 100644 --- a/src/classes.cpp +++ b/src/classes.cpp @@ -11,6 +11,8 @@ // 03 Mar 01 added: pickle safety measures (Ralf W. Grosse-Kunstleve) // 03 Mar 01 bug fix: use bound_function::create() (instead of new bound_function) +#define BOOST_PYTHON_SOURCE + #include #include #include diff --git a/src/conversions.cpp b/src/conversions.cpp index c986f57b..f1534dd9 100644 --- a/src/conversions.cpp +++ b/src/conversions.cpp @@ -13,6 +13,8 @@ // 04 Mar 01 std::complex<> fixes for MSVC (Dave Abrahams) // 03 Mar 01 added: converters for [plain] char (Ralf W. Grosse-Kunstleve) +#define BOOST_PYTHON_SOURCE + #include #include #include diff --git a/src/cross_module.cpp b/src/cross_module.cpp index ea5a08de..5949be4d 100644 --- a/src/cross_module.cpp +++ b/src/cross_module.cpp @@ -8,6 +8,8 @@ 17 Apr 01 merged into boost CVS trunk (Ralf W. Grosse-Kunstleve) */ +#define BOOST_PYTHON_SOURCE + # include namespace python = boost::python; # include // MSVC6.0SP4 does not know std::fprintf diff --git a/src/extension_class.cpp b/src/extension_class.cpp index 3815a19c..e9183c82 100644 --- a/src/extension_class.cpp +++ b/src/extension_class.cpp @@ -9,6 +9,8 @@ // Revision History: // 04 Mar 01 Use PyObject_INIT() instead of trying to hand-initialize (David Abrahams) +#define BOOST_PYTHON_SOURCE + #include #include #include diff --git a/src/functions.cpp b/src/functions.cpp index a04e2e51..ecbacf4e 100644 --- a/src/functions.cpp +++ b/src/functions.cpp @@ -9,6 +9,8 @@ // Revision History: // Mar 01 01 Use PyObject_INIT() instead of trying to hand-initialize (David Abrahams) +#define BOOST_PYTHON_SOURCE + #include #include #include diff --git a/src/init_function.cpp b/src/init_function.cpp index 1667724c..1ebfa501 100644 --- a/src/init_function.cpp +++ b/src/init_function.cpp @@ -6,6 +6,8 @@ // The author gratefully acknowleges the support of Dragon Systems, Inc., in // producing this work. +#define BOOST_PYTHON_SOURCE + #include #include #include diff --git a/src/module_builder.cpp b/src/module_builder.cpp index 57eec75f..bd04a89c 100644 --- a/src/module_builder.cpp +++ b/src/module_builder.cpp @@ -6,6 +6,8 @@ // The author gratefully acknowleges the support of Dragon Systems, Inc., in // producing this work. +#define BOOST_PYTHON_SOURCE + #include namespace boost { namespace python { diff --git a/src/objects.cpp b/src/objects.cpp index 125a1eb8..70257388 100644 --- a/src/objects.cpp +++ b/src/objects.cpp @@ -8,6 +8,8 @@ // TODO: Move inline implementations from objects.cpp here +#define BOOST_PYTHON_SOURCE + #include #include diff --git a/src/types.cpp b/src/types.cpp index c7e1f167..f411aa42 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -6,6 +6,8 @@ // The author gratefully acknowleges the support of Dragon Systems, Inc., in // producing this work. +#define BOOST_PYTHON_SOURCE + #include #include // for handle_exception() #include