diff --git a/build/como.mak b/build/como.mak index 8f05e309..edf05f83 100644 --- a/build/como.mak +++ b/build/como.mak @@ -7,6 +7,7 @@ LIBSRC = \ classes.cpp \ conversions.cpp \ cross_module.cpp \ + errors.cpp \ extension_class.cpp \ functions.cpp \ init_function.cpp \ diff --git a/build/filemgr.py b/build/filemgr.py index 99f4ca30..93cef1cb 100644 --- a/build/filemgr.py +++ b/build/filemgr.py @@ -8,6 +8,7 @@ bpl_exa = "/libs/python/example" files = ( bpl_src + "/classes.cpp", bpl_src + "/conversions.cpp", +bpl_src + "/errors.cpp", bpl_src + "/extension_class.cpp", bpl_src + "/functions.cpp", bpl_src + "/init_function.cpp", diff --git a/build/gcc.mak b/build/gcc.mak index ce718f2b..b818030e 100644 --- a/build/gcc.mak +++ b/build/gcc.mak @@ -11,6 +11,7 @@ LIBSRC = \ classes.cpp \ conversions.cpp \ cross_module.cpp \ + errors.cpp \ extension_class.cpp \ functions.cpp \ init_function.cpp \ diff --git a/build/irix_CC.mak b/build/irix_CC.mak index ec387746..f7d6004e 100644 --- a/build/irix_CC.mak +++ b/build/irix_CC.mak @@ -17,10 +17,10 @@ ROOT=$(HOME) BOOST=$(ROOT)/boost -PYEXE=PYTHONPATH=. /usr/local/Python-1.5.2/bin/python -PYINC=-I/usr/local/Python-1.5.2/include/python1.5 -#PYEXE=PYTHONPATH=. /usr/local/Python-2.1/bin/python -#PYINC=-I/usr/local/Python-2.1/include/python2.1 +#PYEXE=PYTHONPATH=. /usr/local/Python-1.5.2/bin/python +#PYINC=-I/usr/local/Python-1.5.2/include/python1.5 +PYEXE=PYTHONPATH=. /usr/local_cci/Python-2.1.1/bin/python +PYINC=-I/usr/local_cci/Python-2.1.1/include/python2.1 STLPORTINC=-I$(BOOST)/boost/compatibility/cpp_c_headers STDOPTS= @@ -35,7 +35,7 @@ MAKEDEP=-M LD=CC -LANG:std -n32 -mips4 LDOPTS=-shared -OBJ=classes.o conversions.o extension_class.o functions.o \ +OBJ=classes.o conversions.o errors.o extension_class.o functions.o \ init_function.o module_builder.o \ objects.o types.o cross_module.o DEPOBJ=$(OBJ) \ diff --git a/build/linux_gcc.mak b/build/linux_gcc.mak index ef643991..3b466e7d 100644 --- a/build/linux_gcc.mak +++ b/build/linux_gcc.mak @@ -17,12 +17,12 @@ ROOT=$(HOME) BOOST=$(ROOT)/boost -PYEXE=PYTHONPATH=. /usr/bin/python -PYINC=-I/usr/include/python1.5 +#PYEXE=PYTHONPATH=. /usr/bin/python +#PYINC=-I/usr/include/python1.5 #PYEXE=PYTHONPATH=. /usr/local/Python-1.5.2/bin/python #PYINC=-I/usr/local/Python-1.5.2/include/python1.5 -#PYEXE=PYTHONPATH=. /usr/local/Python-2.1/bin/python -#PYINC=-I/usr/local/Python-2.1/include/python2.1 +PYEXE=PYTHONPATH=. /usr/local_cci/Python-2.1.1/bin/python +PYINC=-I/usr/local_cci/Python-2.1.1/include/python2.1 STDOPTS=-fPIC -ftemplate-depth-21 WARNOPTS= @@ -36,7 +36,7 @@ MAKEDEP=-M LD=$(CPP) LDOPTS=-shared -OBJ=classes.o conversions.o extension_class.o functions.o \ +OBJ=classes.o conversions.o errors.o extension_class.o functions.o \ init_function.o module_builder.o \ objects.o types.o cross_module.o DEPOBJ=$(OBJ) \ diff --git a/build/mingw32.mak b/build/mingw32.mak index bf590409..d8c31b68 100644 --- a/build/mingw32.mak +++ b/build/mingw32.mak @@ -52,7 +52,7 @@ CPPOPTS=$(STLPORTINC) $(STLPORTOPTS) -I$(BOOST_WIN) $(PYINC) \ LD=g++ LDOPTS=-shared -OBJ=classes.o conversions.o extension_class.o functions.o \ +OBJ=classes.o conversions.o errors.o extension_class.o functions.o \ init_function.o module_builder.o \ objects.o types.o cross_module.o diff --git a/build/tru64_cxx.mak b/build/tru64_cxx.mak index f996a0c1..a64927b1 100644 --- a/build/tru64_cxx.mak +++ b/build/tru64_cxx.mak @@ -17,10 +17,10 @@ ROOT=$(HOME) BOOST=$(ROOT)/boost -PYEXE=PYTHONPATH=. /usr/local/Python-1.5.2/bin/python -PYINC=-I/usr/local/Python-1.5.2/include/python1.5 -#PYEXE=PYTHONPATH=. /usr/local/Python-2.1/bin/python -#PYINC=-I/usr/local/Python-2.1/include/python2.1 +#PYEXE=PYTHONPATH=. /usr/local/Python-1.5.2/bin/python +#PYINC=-I/usr/local/Python-1.5.2/include/python1.5 +PYEXE=PYTHONPATH=. /usr/local_cci/Python-2.1.1/bin/python +PYINC=-I/usr/local_cci/Python-2.1.1/include/python2.1 #STLPORTINC=-I/usr/local/STLport-4.1b3/stlport #STLPORTINC=-I/usr/local/STLport-4.1b4/stlport #STLPORTOPTS= \ @@ -46,7 +46,7 @@ LDOPTS=-shared -expect_unresolved 'Py*' -expect_unresolved '_Py*' #HIDDEN=-hidden -OBJ=classes.o conversions.o extension_class.o functions.o \ +OBJ=classes.o conversions.o errors.o extension_class.o functions.o \ init_function.o module_builder.o \ objects.o types.o cross_module.o DEPOBJ=$(OBJ) \ diff --git a/build/vc60.mak b/build/vc60.mak index a348de54..6f303791 100644 --- a/build/vc60.mak +++ b/build/vc60.mak @@ -14,14 +14,14 @@ ROOT=R: BOOST_WIN="$(ROOT)\boost" BOOST_UNIX=$(HOME)/boost -PYEXE="C:\Program files\Python\python.exe" -PYINC=/I"C:\Program files\Python\include" -PYLIB="C:\Program files\Python\libs\python15.lib" -#PYEXE="C:\Python21\python.exe" -#PYINC=/I"C:\Python21\include" -#PYLIB="C:\Python21\libs\python21.lib" +#PYEXE="C:\Program files\Python\python.exe" +#PYINC=/I"C:\Program files\Python\include" +#PYLIB="C:\Program files\Python\libs\python15.lib" +PYEXE="C:\Python21\python.exe" +PYINC=/I"C:\Python21\include" +PYLIB="C:\Python21\libs\python21.lib" -STDOPTS=/nologo /MD /GR /GX /Zm200 +STDOPTS=/nologo /MD /GR /GX /Zm200 /DBOOST_PYTHON_STATIC_LIB WARNOPTS= OPTOPTS= @@ -32,7 +32,7 @@ CPPOPTS=$(STLPORTINC) $(STLPORTOPTS) /I$(BOOST_WIN) $(PYINC) \ LD=link.exe LDOPTS=/nologo /dll /incremental:no -OBJ=classes.obj conversions.obj extension_class.obj functions.obj \ +OBJ=classes.obj conversions.obj errors.obj extension_class.obj functions.obj \ init_function.obj module_builder.obj \ objects.obj types.obj cross_module.obj diff --git a/build/win32_mwcc.mak b/build/win32_mwcc.mak index ac054c07..c49af71c 100755 --- a/build/win32_mwcc.mak +++ b/build/win32_mwcc.mak @@ -10,7 +10,7 @@ # 14 Dec 01 derived from vc60.mak (R.W. Grosse-Kunstleve) ROOT=R: -BOOST_WIN="$(ROOT)\boostdev" +BOOST_WIN="$(ROOT)\boost" BOOST_UNIX=$(HOME)/boost #PYEXE="C:\Program files\Python\python.exe" @@ -20,7 +20,7 @@ PYEXE="C:\Python21\python.exe" PYINC=-I"C:\Python21\include" PYLIB="C:\Python21\libs\python21.lib" -STDOPTS=-gccinc -prefix UseDLLPrefix.h +STDOPTS=-gccinc -prefix UseDLLPrefix.h -DBOOST_PYTHON_STATIC_LIB WARNOPTS=-warn on,nounusedexpr,nounused OPTOPTS=-O @@ -31,7 +31,7 @@ CPPOPTS=$(STDOPTS) $(WARNOPTS) $(OPTOPTS) \ LD=mwld LDOPTS=-export dllexport -shared -OBJ=classes.obj conversions.obj extension_class.obj functions.obj \ +OBJ=classes.obj conversions.obj errors.obj extension_class.obj functions.obj \ init_function.obj module_builder.obj \ objects.obj types.obj cross_module.obj diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 498fa07a..c79eb2ca 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -129,4 +129,13 @@ # endif #endif +#if defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730 +// Work around a compiler bug. +// boost::python::detail::function has to be seen by the compiler before the +// boost::function class template. +namespace boost { namespace python { namespace detail { +class function; +}}} +#endif + #endif // CONFIG_DWA052200_H_