Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing includes #73

Closed
lisyarus opened this issue Feb 5, 2014 · 1 comment
Closed

Missing includes #73

lisyarus opened this issue Feb 5, 2014 · 1 comment

Comments

@lisyarus
Copy link
Contributor

lisyarus commented Feb 5, 2014

Files

db/perf_context_test.cc
db/prefix_test.cc

seem to lack includes

#include "rocksdb/slice_transform.h"
#include "rocksdb/memtablerep.h"

Without these, compilation of targets perf_context_test and prefix_test results in following errors:

db/perf_context_test.cc: In function ‘std::shared_ptr<rocksdb::DB> rocksdb::OpenDb()’:
db/perf_context_test.cc:40:31: error: ‘NewFixedPrefixTransform’ is not a member of ‘rocksdb’
db/perf_context_test.cc:42:53: error: ‘NewHashSkipListRepFactory’ was not declared in this scope

db/prefix_test.cc: In member function ‘std::shared_ptr<rocksdb::DB> rocksdb::PrefixTest::OpenDb()’:
db/prefix_test.cc:109:56: error: ‘NewFixedPrefixTransform’ was not declared in this scope
db/prefix_test.cc:112:47: error: ‘NewHashSkipListRepFactory’ was not declared in this scope
db/prefix_test.cc: In member function ‘void rocksdb::_Test_PrefixHash::_Run()’:
db/prefix_test.cc:264:44: error: invalid use of incomplete type ‘const class rocksdb::SliceTransform’
In file included from ./include/rocksdb/db.h:17:0,
                 from db/prefix_test.cc:7:
./include/rocksdb/options.h:35:7: error: forward declaration of ‘const class rocksdb::SliceTransform’
db/prefix_test.cc:302:50: error: invalid use of incomplete type ‘const class rocksdb::SliceTransform’
In file included from ./include/rocksdb/db.h:17:0,
                 from db/prefix_test.cc:7:
./include/rocksdb/options.h:35:7: error: forward declaration of ‘const class rocksdb::SliceTransform’

@igorcanadi
Copy link
Collaborator

2bad3cb

Nazgolze pushed a commit to Nazgolze/rocksdb-1 that referenced this issue Sep 21, 2021
Nazgolze pushed a commit to Nazgolze/rocksdb-1 that referenced this issue Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants