Re: [C++-sig] boost.python class constructor error

2010-03-11 Thread hitesh dhiman
Hi Jim, The solution was to include the Test1.cpp in the python extension line as you suggested. After i had to include include , and the code compiled. I guess the boost documentation is not too clear on these concepts... Anyways thanks for the help! On Fri, Mar 12, 2010 at 12:48 PM, Jim Bosch w

Re: [C++-sig] boost.python class constructor error

2010-03-11 Thread Jim Bosch
On Fri, 2010-03-12 at 12:01 +0800, hitesh dhiman wrote: > hi Jim > Will it help if i post my jam-root file? Its included below: > import python ; > > > if ! [ python.configured ] > { > ECHO "notice: no Python configured in user-config.jam" ; > ECHO "notice: will use default configuration"

Re: [C++-sig] boost.python class constructor error

2010-03-11 Thread hitesh dhiman
hi Jim Will it help if i post my jam-root file? Its included below: import python ; if ! [ python.configured ] { ECHO "notice: no Python configured in user-config.jam" ; ECHO "notice: will use default configuration" ; using python ; } # Specify the path to the Boost project. If you m

Re: [C++-sig] boost.python class constructor error

2010-03-11 Thread Jim Bosch
On Fri, 2010-03-12 at 10:36 +0800, hitesh dhiman wrote: > This error occurs when i declare the class constructor in the c++ > header file and the definition in the .cpp file. Bjam throws up a > LNK2019 error, unresolved symbol. > But if i declare the class constructor in the header file itself, the

[C++-sig] boost.python class constructor error

2010-03-11 Thread hitesh dhiman
This error occurs when i declare the class constructor in the c++ header file and the definition in the .cpp file. Bjam throws up a LNK2019 error, unresolved symbol. But if i declare the class constructor in the header file itself, the code compiles. Here's the code: *Test1.h* #include //using na

[C++-sig] Virtual functions : should I use wrapper::get_override or call_method and boost::ref ?

2010-03-11 Thread Guillaume Seguin
Boost.Python 1.42 documentation shows how to overload virtual functions using boost::python::wrapper::get_override. I made the example work. Now I am struggling with a inheritance problem with virtual functions calling each other, with a mix and match of Python and C++ implementation of a common b