.cpp to .pyd

vedrandekovic at yahoo.com vedrandekovic at yahoo.com
Thu Aug 7 12:49:05 EDT 2008


On 7 kol, 11:37, Ulrich Eckhardt <eckha... at satorlaser.com> wrote:
> vedrandeko... at yahoo.com wrote:
> > hellomodule.cpp(9) : fatal error C1083: Cannot open include file:
> > 'boost/python/module.hpp': No such file or directory
>
> You need to tell it where to find the Boost includes. I suggest you first
> try to get some header-only Boost library going as example, if you have
> that right, you also have the include paths right.
>
> In your second posting, you gave a link to a picture which had the exact
> right dialog for setting this as system setup. You can also set the path on
> a per-project base, then it's in the C++ settings.
>
> Note that for compiled libraries like Boost.Python you will first have to
> compile those (see Boost docs), put the DLLs into a place where they can be
> found (e.g. the windows dir or anything else on the path) and also have to
> set a path to the .LIBS in the linker settings.
>
> As an alternative to compiling libraries separately, you can also include
> the Boost sources into your project, just add BOOST_PYTHON_STATIC_LIB to
> the preprocessor defines and include the following files from one(!)
> translation unit:
>
> <boost/../libs/python/src/module.cpp>
> <boost/../libs/python/src/dict.cpp>
> <boost/../libs/python/src/errors.cpp>
> <boost/../libs/python/src/list.cpp>
> <boost/../libs/python/src/object_operators.cpp>
> <boost/../libs/python/src/object_protocol.cpp>
> <boost/../libs/python/src/tuple.cpp>
> <boost/../libs/python/src/str.cpp>
> <boost/../libs/python/src/object/class.cpp>
> <boost/../libs/python/src/object/function.cpp>
> <boost/../libs/python/src/object/inheritance.cpp>
> <boost/../libs/python/src/object/pickle_support.cpp>
> <boost/../libs/python/src/converter/builtin_converters.cpp>
> <boost/../libs/python/src/converter/registry.cpp>
> <boost/../libs/python/src/converter/from_python.cpp>
>
> Note: this is with Boost 1.33.1, newer versions likely differ.
>
> Uli
>
> --
> Sator Laser GmbH
> Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932

Hello again,

This answer is probably exactly what I need, but as I said, I don't
have any expirience with MS products! Is there any other easier
way except "boost python" to make .pyd from .cpp?



More information about the Python-list mailing list