Visual Studio 2022 not creating DLL using Boost.Python
After following this page on how to install boost in Visual Studio 2022, I added the hello world for Boost.Python into the main.cpp file. However, even though the program builds and runs successfully, I can’t find the hello_ext.dll
file that can be imported into Python. I’ve tried searching in the windows file explorer for ANY dll file in my solution directory, but nothing comes up. I’ve checked the default output directory (i.e. SOLUTION/x64/debug) and it’s not there. Did I miss a step?
Visual Studio 2022 not creating DLL using Boost.Python
After following this page on how to install boost in Visual Studio 2022, I added the hello world for Boost.Python into the main.cpp file. However, even though the program builds and runs successfully, I can’t find the hello_ext.dll
file that can be imported into Python. I’ve tried searching in the windows file explorer for ANY dll file in my solution directory, but nothing comes up. I’ve checked the default output directory (i.e. SOLUTION/x64/debug) and it’s not there. Did I miss a step?
Visual Studio 2022 not creating DLL using Boost.Python
After following this page on how to install boost in Visual Studio 2022, I added the hello world for Boost.Python into the main.cpp file. However, even though the program builds and runs successfully, I can’t find the hello_ext.dll
file that can be imported into Python. I’ve tried searching in the windows file explorer for ANY dll file in my solution directory, but nothing comes up. I’ve checked the default output directory (i.e. SOLUTION/x64/debug) and it’s not there. Did I miss a step?
Visual Studio 2022 not creating DLL using Boost.Python
After following this page on how to install boost in Visual Studio 2022, I added the hello world for Boost.Python into the main.cpp file. However, even though the program builds and runs successfully, I can’t find the hello_ext.dll
file that can be imported into Python. I’ve tried searching in the windows file explorer for ANY dll file in my solution directory, but nothing comes up. I’ve checked the default output directory (i.e. SOLUTION/x64/debug) and it’s not there. Did I miss a step?
Is it safe to define static python object in C++ for Boost.Python?
I have a python script that calls some C++ code, and in the C++ part, I want to define some static python object, for example: static boost::python::list obj
. However, according to pybind11 issue 1598 and 3274, it seems unsafe to do so, because the destructor of the static C++ object is called when the the program is exited and the python interpreter may already be in a invalid state at that time. I cant find much information about this in the doc, should I avoid static python object when using Boost.Python?