error: 'SQLITE_CHECKPOINT_FULL' was not declared in this scope
- Dominant language
- C++
- Stars
- 39.4k
- Forks
- 8.2k
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to install it on a Linux system following the instructions. Here are the commands I ran:
```
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
```
But I got the following errors during the second command:
```
leveldb-1.22/doc/bench/db_bench_sqlite3.cc: In function 'void WalCheckpoint(sqlite3*)':
leveldb-1.22/doc/bench/db_bench_sqlite3.cc:106:45: error: 'SQLITE_CHECKPOINT_FULL' was not declared in this scope
106 | sqlite3_wal_checkpoint_v2(db_, nullptr, SQLITE_CHECKPOINT_FULL, nullptr,
| ^~~~~~~~~~~~~~~~~~~~~~
leveldb-1.22/doc/bench/db_bench_sqlite3.cc:106:5: error: 'sqlite3_wal_checkpoint_v2' was not declared in this scope
106 | sqlite3_wal_checkpoint_v2(db_, nullptr, SQLITE_CHECKPOINT_FULL, nullptr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/db_bench_sqlite3.dir/doc/bench/db_bench_sqlite3.cc.o] Error 1
gmake[1]: *** [CMakeFiles/db_bench_sqlite3.dir/all] Error 2
gmake: *** [all] Error 2
```
Could you help me solve this issue? Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.