简体   繁体   中英

boost.build Vs boost.python

Context -- Trying to use Boost.Python set of C++ libraries to interface with C++ code. Main idea is to test C++ code (.so files) by using them like python from a QA point of view.

Questions now;

  1. BOOST_PYTHON_MODULE wrapper, do we really need to include in every .cpp to be interfaced from Python? Say we have test.cpp, can't we have Boost wrapper written test_qa.cpp so that actual dev code is not changed in the process?

  2. Looked Boost.org site to get more clarity, what is the difference between Boost.Build and Boost.Python?

From the Boost Build documentation :

Boost.Build is an easy way to build C++ projects, everywhere.

From the Boost Python documentation :

... a C++ library which enables seamless interoperability between C++ and the Python programming language

I would say the difference between these two parts of Boost should be pretty obvious.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM