Unexpected exit when use Visual Studio 2022
- Lenguaje dominante
- C++
- Estrellas
- 537
- Forks
- 223
- Merge medio
- 11 h 22 min
- PR fusionados (30 d)
- 2
Descripción
I installed boost Python on Windows using vcpkg. And I successfully compiled my DLL file, but I don't know why Python always exits automatically after import the dll.
This is my code (dllmain.cpp):
```cpp
// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "pch.h"
#include
#include
#define BOOST_PYTHON_STATIC_LIB
#include
using namespace boost::python;
void test() {
std::cout << "Test" << std::endl;
}
BOOST_PYTHON_MODULE(Dll1)
{
boost::python::def("test", test);
}
```


This is my Visual Studio 2022 Config:



Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.