tecbot / gorocksdb

gorocksdb is a Go wrapper for RocksDB
http://rocksdb.org
MIT License
940 stars 269 forks source link

stddef.h' file not found #158

Open constantinevassil opened 5 years ago

constantinevassil commented 5 years ago

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 / for ptrdiff_t and size_t below /