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!! -- Junwei Zhang Office Phone:402-472-1968 www.junweizhang.com Department of Electrical Engineering University of Nebraska-Lincoln 209N Walter Scott Engineering Center P.O. Box 880511 Lincoln, NE 68588-0511 _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig