Re: python , Boost and straight (but complex) C code
- From: "Roman Yakovenko" <roman.yakovenko@xxxxxxxxx>
- Date: Sat, 30 Dec 2006 23:35:22 +0200
On 12/30/06, Osiris <nono@xxxxxxxxxxx> 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/
.
- Follow-Ups:
- Re: python , Boost and straight (but complex) C code
- From: Osiris
- Re: python , Boost and straight (but complex) C code
- References:
- python , Boost and straight (but complex) C code
- From: Osiris
- Re: python , Boost and straight (but complex) C code
- From: Osiris
- python , Boost and straight (but complex) C code
- Prev by Date: Re: find login name of user?
- Next by Date: Re: No way to set a timeout in "urllib".
- Previous by thread: Re: python , Boost and straight (but complex) C code
- Next by thread: Re: python , Boost and straight (but complex) C code
- Index(es):