[C++-sig] Question regarding boost.python and Makefiles

Herringshaw, Chris Chris.Herringshaw at citadelgroup.com
Fri May 21 15:51:48 CEST 2004

Fair enough....any ideas why it compiles but gets the error
I detailed in my original email?  (Reprinted below)

This compiles fine.  Here is the source file:

#include <iostream>
#include <string>

#include <boost/python.hpp>
#include <boost/python/class.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>



Here is the python file:


from chris import *

And when I run the script, here is what I get:

Traceback (most recent call last):
  File "./pythonboost.py", line 3, in ?
    from chris import *
ImportError: dynamic module does not define init function (initchris)


-----Original Message-----
From: Paul F. Kunz [mailto:Paul_Kunz at slac.stanford.edu] 
Sent: Thursday, May 20, 2004 7:39 PM
To: c++-sig at python.org
Subject: Re: [C++-sig] Question regarding boost.python and Makefiles

>>>>> On Thu, 20 May 2004 13:35:36 -0500, "Herringshaw, Chris" 
>>>>> <Chris.Herringshaw at citadelgroup.com> said:

> I am exploring the use of Boost.Python for an application, however I 
> am stuck with a legacy limitation - the build environment for this 
> application is Makefile based, and as such, I cannot easily use the 
> Jam build system.

   Once you get Boost.Python installed with bjam, then its library and
header files are like any other package.   You can use your favorite
build environment for your code.

C++-sig mailing list
C++-sig at python.org


This e-mail contains information that may be confidential and 
proprietary. It is to be read and used solely by the intended recipient(s). 
Citadel and its affiliates retain all proprietary rights they may have in the 
information. If you are not an intended recipient, please notify us 
immediately either by reply e-mail or by telephone at 312-395-2100 
and delete this e-mail (including any attachments hereto) immediately 
without reading, disseminating, distributing or copying. We cannot give 
any assurances that this e-mail and any attachments are free of viruses 
and other harmful code. Citadel reserves the right to monitor, intercept 
and block all communications involving its computer systems.

More information about the Cplusplus-sig mailing list