Issue 234 in leveldb: snappy

316 views
Skip to first unread message

lev...@googlecode.com

unread,
May 6, 2014, 9:32:50 PM5/6/14
to lev...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 234 by wyy...@gmail.com: snappy
http://code.google.com/p/leveldb/issues/detail?id=234

What steps will reproduce the problem?
1.i write a c++ program.
2.in linux ,g++ -o sa Main.cpp libleveldb.a -lpthread


What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
leveldb 1.14.0, red hat

Please provide any additional information below.
this is problem:
libleveldb.a(table_builder.o): In function
`leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*,
leveldb::BlockHandle*)':
table_builder.cc:(.text+0x6a8): undefined reference to
`snappy::MaxCompressedLength(unsigned long)'
table_builder.cc:(.text+0x6e2): undefined reference to
`snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)'
libleveldb.a(format.o): In function
`leveldb::ReadBlock(leveldb::RandomAccessFile*, leveldb::ReadOptions
const&, leveldb::BlockHandle const&, leveldb::BlockContents*)':
format.cc:(.text+0x5de): undefined reference to
`snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)'
format.cc:(.text+0x64e): undefined reference to `snappy::RawUncompress(char
const*, unsigned long, char*)'
collect2: ld returned 1 exit status


i think may be snappy problem,but i dont kown what to do


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

lev...@googlecode.com

unread,
Feb 11, 2015, 1:09:56 AM2/11/15
to lev...@googlegroups.com

Comment #1 on issue 234 by tksh...@gmail.com: snappy
https://code.google.com/p/leveldb/issues/detail?id=234

I solved this problem.
Add "-lsnappy" when you build your c++ program.
If you don't have snappy library, build snappy.
Reply all
Reply to author
Forward
0 new messages