Skip to content Skip to sidebar Skip to footer

Boost Python On Windows Crashes At Import("__main__");

I am writting a program which uses boost python embedded. My program works no problem on Linux Mint but on Windows its a huge pain. I am using MingW so I tried creating an import l

Solution 1:

I have added Py_Initialize, and the crash problem was solved

Py_Initialize();
boost::python::object main = boost::python::import("__main__");

Post a Comment for "Boost Python On Windows Crashes At Import("__main__");"