Boost python module building

Posted by Ockonal on Stack Overflow See other posts from Stack Overflow or by Ockonal
Published on 2010-04-03T08:54:06Z Indexed on 2010/04/03 9:23 UTC
Read the original article Hit count: 370

Filed under:
|
|

Hello, I'm using boost.python and I need in building some module for it. I have an some_module.cpp file in project. How can I build it correctly to the shared library for using it with python in future? When I learned it, I had only 1 file and I built it with command:

gcc -shared -Wl,-soname,hello.so -o hello.so test.cpp -I /usr/include/python2.6/ -lboost_python

And I don't know how to configure it in whole project.


I'm using Eclipse and Code::Blocks IDEs.

© Stack Overflow or respective owner

Related posts about boost

Related posts about python