Fredrik Orderud
2008-12-27 22:11:14 UTC
Does pyublas support static linking to the boost.python library?
I'm experiencing problems with pyublas when compiling pyublas._internal and
pyublas example code for static linking to boots.python (by defining
BOOST_PYTHON_STATIC_LIB).
Error message ("simple sample extension" from webpage):
--
ArgumentError: Python argument types in
sample_ext.doublify(numpy.ndarray)
did not match C++ signature:
doublify(class pyublas::numpy_vector<double>)
--
The same code runs without problems when linking dynamically against
boost.python. Other boost python code I've got unrelated to pyublas works
without problems regardless of doing static or dynamic linking to
boost.python.
My configuration:
* Windows XP SP3
* MS Visual C++ 2008
* Boost 1.37.0 with statically linked libraries (to avoid DLL dependencies)
* Python 1.5.2
* Newest PyUblas revision from GIT respository
Thanks in advance.
Fredrik Orderud
PhD student, Norwegian university of science and technology
I'm experiencing problems with pyublas when compiling pyublas._internal and
pyublas example code for static linking to boots.python (by defining
BOOST_PYTHON_STATIC_LIB).
Error message ("simple sample extension" from webpage):
--
ArgumentError: Python argument types in
sample_ext.doublify(numpy.ndarray)
did not match C++ signature:
doublify(class pyublas::numpy_vector<double>)
--
The same code runs without problems when linking dynamically against
boost.python. Other boost python code I've got unrelated to pyublas works
without problems regardless of doing static or dynamic linking to
boost.python.
My configuration:
* Windows XP SP3
* MS Visual C++ 2008
* Boost 1.37.0 with statically linked libraries (to avoid DLL dependencies)
* Python 1.5.2
* Newest PyUblas revision from GIT respository
Thanks in advance.
Fredrik Orderud
PhD student, Norwegian university of science and technology