C++ Boost.Python : 2 problems
问题 So, i search good tool to integrate my C++ code with python, and at first i looked at boost.python. I've get hello examle from boost documentation and try to build and run it. Source code is (src/hello.cpp): #include <Python.h> #include <boost/python.hpp> char const* greet() { return "hello, world"; } BOOST_PYTHON_MODULE(hello_ext) { using namespace boost::python; def("greet", greet); } Problem 1 - Windows and mingw I try to build and my result : g++ -o build\hello.o -c -IE:\Programming\libs