Building snappy for Windows (HELP)

snappy - GitHub - google/snappy: A fast compressor/decompressor

When building with the parameters:
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_POSITION_INDEPENDENT_CODE=on .
cmake --build .

Error occurs: LINK : fatal error LNK1104: cannot open file ‘Debug\snappy_test_support.lib’ [C:\snappy\build\snappy_unittest.vcxproj]

I would guess that snappy doesn’t export symbols properly. You can try passing -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON.

1 Like

Thank you! Can you help me with this? https://discourse.cmake.org/t/help-with-linking-snappy-to-leveldb-windows-pay-40/