[C++-sig] boost::python embedding error - runtime - Mac OS X - 1.38

pi sunfish7 at gmail.com
Wed Oct 1 13:28:17 CEST 2014


Was this problem ever resolved?  I am getting exactly the same issue on OSX
Mavericks.  I create a new Xcode commandline project, link libpython3.4.1
and libboost_python dylibs, add relevant header-search-paths.

Then I modify main.c to:

    #include <boost/python.hpp>

    int main( int argc, const char* argv[] )
    {
        Py_Initialize();    
        using namespace boost::python;    
        object main_module = import("__main__"); // <--
EXC_BAD_ACCESS(code=1, address=0x0)
    }

In fact everything below the error can be removed, giving a minimal failure
example.



--
View this message in context: http://boost.2283326.n4.nabble.com/boost-python-embedding-error-runtime-Mac-OS-X-1-38-tp2702075p4668060.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.


More information about the Cplusplus-sig mailing list