gorocksdb icon indicating copy to clipboard operation
gorocksdb copied to clipboard

stddef.h' file not found

Open constantinevassil opened this issue 5 years ago • 0 comments

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 */

constantinevassil avatar Apr 19 '19 17:04 constantinevassil