Unexpected exit when use Visual Studio 2022
- Ngôn ngữ chính
- C++
- Star
- 537
- Fork
- 223
- Merge trung bình
- 11 giờ 22 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
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:



Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.