Help with linking snappy to leveldb (Windows) pay 40$

No, you can see that it succeeds 2 calls after that. Some Windows APIs tend to have a “query for buffer size” call so that a buffer can be properly sized prior to the “real” call. I suspect something like that is happening here.

I installed the windows build from conda, same result. Plyvel :: Anaconda.org

The problem was solved. I built it with msbuild and everything worked fine

cmake -G "Visual Studio 17" -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on -DSNAPPY_BUILD_TESTS=0 -DSNAPPY_BUILD_BENCHMARKS=0
msbuild /p:Configuration=Release snappy.sln
cmake -G "Visual Studio 17" -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on -DLEVELDB_BUILD_TESTS=off -DLEVELDB_BUILD_BENCHMARKS=off .
msbuild /p:Configuration=Release leveldb.sln
import os

os.add_dll_directory(r"C:\Users\xxx\PycharmProjects\python0\libs") # path to dll (leveldb, snappy)

import plyvel

Thank you all for your help!