Skip to content

xbalabala/leveldb-c-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LevelDB C example

This is a simple example to demonstrate how you use LevelDB with C.

Install

Install LevelDB either by yourself or with a package manager. I recommend Homebrew for OS X. Please note that LevelDB requires Snappy.

build from source:

# git clone https://github.com/google/leveldb, follow readme build
cp --preserve=links libleveldb.a /usr/local/lib
cp -r include/leveldb /usr/local/include/

Compile

Compile with GCC:

gcc leveldb_example.c -Wall -lleveldb -lstdc++ -lpthread

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 89.9%
  • Makefile 7.6%
  • Shell 2.5%