When trying to compile this with c++ on Ubuntu, I'm getting the error: ‘options’ does not name a type. This is on line 8.
#include "rocksdb/db.h"
#include <cassert>
using namespace rocksdb;
DB* db;
Options options;
options.create_if_missing = true;
rocksdb::Status status = rocksdb::DB::Open(options, "/tmp/testdb", &db);
assert(status.ok());
I'm very new to C++, and can't make sense of why the type hasn't registered with the "Options options" variable declaration. I've looked at the definition of the Options struct, and create_if_missing is one of the properties. Any ideas?