python , Boost and straight (but complex) C code

Roman Yakovenko roman.yakovenko at gmail.com
Sat Dec 30 16:35:22 EST 2006


On 12/30/06, Osiris <nono at hotmail.com> wrote:
> Visual C++ build log at:
>
> http://213.10.133.192/BuildLog.htm

It is better to ask Boost.Python related questions on it mailing list:
http://mail.python.org/mailman/listinfo/c++-sig/

You should add to the link line boost_python.lib, thus you will eliminate
"unresolved reference symbol" errors. If you did not build Boost.Python
next page( http://boost.org/libs/python/doc/building.html ) contains pretty
good explanation how to do this.

http://boost.org/libs/python/doc/v2/scope.html - here you will find example how
to expose my_int variable to Python. my_int has type int, so C++ code will not
see changes to the variable that are done from Python. You will have to write
set_my_int( x ) function to achieve this.

If you are new to Boost.Python try to use Py++ - the code generator for
the library. The Py++ GUI( http://tinyurl.com/ycwvwo ) will help you
to start\learn Boost.Python.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Python-list mailing list