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

hitesh dhiman hitesh.dhiman.1988 at gmail.com
Fri Mar 12 06:18:55 CET 2010


Hi Jim,
The solution was to include the Test1.cpp in the python extension line as
you suggested. After i had to include include <iostream>, 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 <talljimbo at gmail.com> wrote:

> 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" ;
> >     using python ;
> > }
> >
> >
> > # Specify the path to the Boost project.  If you move this project,
> > # adjust this path to refer to the Boost root directory.
> > use-project boost
> >   : "C:/Program Files/boost/boost_1_42" ;
> >
> >
> > # Set up the project-wide requirements that everything uses the
> > # boost_python library from the project whose global ID is
> > # /boost/python.
> > project
> >   : requirements <library>/boost/python//boost_python ;
> >
> >
> > # Declare the three extension modules.  You can specify multiple
> > # source files after the colon separated by spaces.
> > python-extension hello : TestWrap.cpp ;
> >
>
> It's this line right here, I think. Should be:
>
>  python-extension hello : TestWrap.cpp Test1.cpp;
>
>
> Good luck!
>
> Jim
>
>
>
>
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Regards,
Hitesh Dhiman
Electrical Engineering
National University of Singapore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20100312/3cad4c9b/attachment.html>


More information about the Cplusplus-sig mailing list