CGO_CFLAGS="-I/usr/include/" \
CGO_LDFLAGS="-L/usr/lib/ -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd" \
go get github.com/cosmos/gorocksdb
then I got the error:
# github.com/cosmos/gorocksdb
/root/go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/transactiondb.go:257:17: could not determine kind of name for C.rocksdb_optimistictransactiondb_checkpoint_object_create
/root/go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/transactiondb.go:210:12: could not determine kind of name for C.rocksdb_optimistictransactiondb_property_value
/root/go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/transactiondb.go:238:2: could not determine kind of name for C.rocksdb_optimistictransactiondb_write
/root/go/pkg/mod/github.com/cosmos/gorocksdb@v1.2.0/transactiondb.go:61:12: could not determine kind of name for C.rocksdb_transactiondb_property_value
Am I missing something?I expect the correct result. and how can I help?
Hi, I use
gorocksdb
, but now It can not compile success. My env:Rocksdb related:
How to reproduce the bug:
run below code in terminal
then I got the error:
Am I missing something?I expect the correct result. and how can I help?