HyperLevelDB
HyperLevelDB copied to clipboard
build failure, can't find a function in snappy?
The build seems to be failing because it can't find functions in snappy:
CXX db/db_bench.o
CXXLD db_bench
/usr/bin/ld: db/db_bench.o: undefined reference to symbol '_ZN6snappy11RawCompressEPKcmPcPm'
/usr/local/lib/libsnappy.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [db_bench] Error 1
make: *** [all] Error 2
... but snappy is installed, and is the most-recent version from git:
checking for snappy_compress in -lsnappy... yes
checking snappy.h usability... yes
checking snappy.h presence... yes
checking for snappy.h... yes
The same problem happened when I used a recent snappy ubuntu package.
What am I missing?
maybe #15 solves your problem