[C++-sig] Problem

Pedro Crespo Valero pedro.crespovalero at epfl.ch
Mon Mar 27 18:51:44 CEST 2006


Hi,

I am not sure this will solve your problem but just in case...
I also had similar problems at the beginning.  The problem was that the 
python library shipped
with Python installation only works with Microsoft compatible link and I 
was using, as you do, mingw (gcc).

In  http://www.boost.org/libs/python/doc/building.html#mingw you will 
find a detail explanation of what happens
and how to solve it. It's really simple.

Hope this will help...  It is really frustrating at the beginning but 
once it starts working... boost::python is wonderful!
Best Regards,
Pedro.

> Hi,
> I'm trying to build the basic boost.python tutorial that comes with the
> distribution.  I'm using bjam and mingw.  It builds the module, but
> upon import, it gives this error:
>
> ImportError: dynamic module does not define init function (inithello)
>
> I've found other threads with this problem as a topic, but no
> solutions.  Somebody has to have solved this....
>
> Any ideas?
>
> Thanks,
> -Justin
>
> OH yeah, I'm using Active Python (perhaps that's it?)
-- 
Pedro





More information about the Cplusplus-sig mailing list