[C++-sig] Question about using IT++ in boost.python

Junwei Zhang junweizhang2006 at gmail.com
Tue Sep 7 22:25:33 CEST 2010


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


More information about the Cplusplus-sig mailing list