Unexpected exit when use Visual Studio 2022
- Lingua principale
- C++
- Stelle
- 537
- Fork
- 223
- Merge medio
- 11h 22m
- PR unite (30g)
- 2
Descrizione
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:



Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.