gorocksdb
gorocksdb copied to clipboard
stddef.h' file not found
MacOS Mojave v. 10.14
Running this command:
CGO_CFLAGS="-I/path/to/rocksdb/include"
CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd"
go get github.com/tecbot/gorocksdb
I got the following error:
runtime/cgo
cgo-builtin-prolog:1:10: fatal error: 'stddef.h' file not found #include <stddef.h> /* for ptrdiff_t and size_t below */