[C++-sig] Question about creation package

2010-09-13 Thread Junwei Zhang
Hi, I follow the boost.python tutorial but it does not work out I create the directory structure as itppl/ __init__py itpp.so and add it to use sys.path.append but in python import itppl.itpp error No module named itppl.tpp What 's wrong with this? -- Junwei Zhang Office

[C++-sig] How to expose operator[] in boost.python

2010-09-08 Thread Junwei Zhang
Hi, If I have a class support operator[] and operator() for indexing purpose. How can I wrapper it in python? -- Junwei Zhang Office Phone:402-472-1968 junweizhang2...@gmail.com www.junweizhang.com Department of Electrical Engineering University of Nebraska-Lincoln 209N Walter Scott Engineering

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

2010-09-07 Thread Junwei Zhang
);// std::cout<", line 1, in 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 Ce

[C++-sig] question about object

2010-08-31 Thread Junwei Zhang
Hi all, who can tell me what c++ semantics of following statement. I do not understand it, it do not like usual c++ codes object msg="%s is bigger than %s" %make_tuple(NAME,name); -- Junwei Zhang Office Phone:402-472-1968 junweizhang2...@gmail.com www.junweizhang.com Department of

Re: [C++-sig] boost.python import problem

2010-08-30 Thread Junwei Zhang
Thanks you all it works On Mon, Aug 30, 2010 at 12:23 PM, Jim Bosch wrote: > On 08/30/2010 10:19 AM, Junwei Zhang wrote: >> >> Hi, everyone, >> >> I just started study boost.python. and have following problem > > >> >> g++ boostpy.cc  -lpyth

[C++-sig] boost.python import problem

2010-08-30 Thread Junwei Zhang
sr/include/python2.5 -o boostpy.so -shared It complies ,but when import it in python, I have following error, <<", line 1, in ImportError: ./boostpy.so: undefined symbol: _ZN5boost6python6detail11init_ moduleEPKcPFvvE any suggestion? Thanks -- Junwei Zhang Office Phone:402-472