Closed scrappyiron closed 4 weeks ago
Nevermind, I needed to compile with the -std=c++17
param like this:
g++ -o column_families_example column_families_example.cc -L/opt/homebrew/lib -lrocksdb -I/opt/homebrew/include -std=c++17
@scrappyiron Yes indeed, your compiler opts were off. You might want to consider setting up a Makefile to handle stuff like that.
Expected behavior
On MacOS 14.2.1 (23C71) I should be able to compile and execute column_families_example.cc from the website (link) after installing RocksDB through brew.
Actual behavior
Compiling with
g++ -o column_families_example column_families_example.cc -L/opt/homebrew/lib -lrocksdb -I/opt/homebrew/include
gets me a lot of errors:Steps to reproduce the behavior
Ran
brew install rocksdb
Confirmed brew installed rocksdb:
g++ -o column_families_example column_families_example.cc -L/opt/homebrew/lib -lrocksdb -I/opt/homebrew/include
Additional information
My g++ version is: