ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

python编译错误

Open ncnnnnn opened this issue 3 years ago • 1 comments

error log | 日志或报错信息 | ログ

ncnn\python\src\pybind11_allocator.h(43,9): error C2440: “return”: 无法从“void”转换为“void *” [

context | 编译/运行环境 | バックグラウンド

vs2022

how to reproduce | 复现步骤 | 再現方法

1.vs2022 2.cmake -DNCNN_PYTHON=ON .. 3.cmake --build .

more | 其他 | その他

ncnnnnn avatar Aug 26 '22 13:08 ncnnnnn

could be resolved by a local typedef for all pointer type ref https://github.com/pybind/pybind11/issues/824

nihui avatar Sep 15 '22 09:09 nihui

https://github.com/Tencent/ncnn/pull/4359

nihui avatar Nov 19 '22 07:11 nihui

fixed in https://github.com/Tencent/ncnn/commit/6647396667426405cee4da8da79f723148f60dd5

nihui avatar Nov 20 '22 11:11 nihui