Boost logo

Boost Users :

From: Themistoklis Bourdenas (burdenas_at_[hidden])
Date: 2006-02-04 13:37:58


I'm trying to build a simple python extension similar to the one in
boost.python tutorial. I really haven't yet understood the process of
creating an extension for python using boost.

I have to build boost.python either using bjam or loading its .sln in VS
(I've used the second method).

Then I write some simple code like that in the tutorial exporting a
simple function and then what? I guess I have to build a .dll file for
python to link to. I'm building a dynamic link library project in VS8
write the appropriate code and that successfully creates a dll file.
However when importing my module python returns a runtime error:
ImportError: dynamic module does not define init function (inittest_boost)

What is the .pyd created in the tutorial? How is it created? I'm trying
to avoid bjam as and use just VS project files. Is that possible?

PS - I know I should send this message in c++-sig list but for three
days now it can not confirm my subscription for some reason.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net