leveldb-c-example's People
Forkers
wlx0419 slowfranklin evagle loantonusi gencer xbalabala hirokuma rkks pepe jesussmarting ywy0318leveldb-c-example's Issues
Fix compilation instructions in the README file
The compilation instructions in the README result in the following on Ubuntu 12.04:
$ gcc -Wall -lleveldb leveldb_example.c
/tmp/ccYHkj1m.o: In function `main':
leveldb_example.c:(.text+0x16): undefined reference to `leveldb_options_create'
leveldb_example.c:(.text+0x2b): undefined reference to `leveldb_options_set_create_if_missing'
leveldb_example.c:(.text+0x40): undefined reference to `leveldb_open'
leveldb_example.c:(.text+0x87): undefined reference to `leveldb_free'
leveldb_example.c:(.text+0x99): undefined reference to `leveldb_writeoptions_create'
leveldb_example.c:(.text+0xcb): undefined reference to `leveldb_put'
leveldb_example.c:(.text+0x10e): undefined reference to `leveldb_free'
leveldb_example.c:(.text+0x120): undefined reference to `leveldb_readoptions_create'
leveldb_example.c:(.text+0x14c): undefined reference to `leveldb_get'
leveldb_example.c:(.text+0x1ac): undefined reference to `leveldb_free'
leveldb_example.c:(.text+0x1d5): undefined reference to `leveldb_delete'
leveldb_example.c:(.text+0x215): undefined reference to `leveldb_free'
leveldb_example.c:(.text+0x229): undefined reference to `leveldb_close'
leveldb_example.c:(.text+0x269): undefined reference to `leveldb_free'
collect2: ld returned 1 exit status
The solution is simple: the -lleveldb
should be specified after the input source file rather than before, making the command line into:
$ gcc -Wall leveldb_example.c -lleveldb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.