On 09/07/2010 01:25 PM, Junwei Zhang wrote:
Hi,
I am now considering using boost.python to integrate some IT++(C++
scientific library)
codes to python.
But when I do some simple example
to wrapper this func
int vfunc(int n)
{
vec a = linspace(0,n,10); // already include IT++ and using its namespace
vec b= linspace(0,2*n,10);//
std::cout<<a<<'\n'<<b<<'\n';
return a*b;
}
def("vfunc", vfunc);
It compiles but when import the module
there is error
raceback (most recent call last):
File "<stdin>", line 1, in<module>
ImportError: ./hello.so: undefined symbol: _ZN4itpp8linspaceEddi
any suggestion is appreciate!!
It looks like you need to link your Python module (it's a shared
library) against the IT++ shared library.
Jim Bosch
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig